```
help: consider restricting type parameter `T` with traits `Copy` and `Trait`
|
LL | fn duplicate_custom<T: Copy + Trait>(t: S<T>) -> (S<T>, S<T>) {
| ++++++++++++++
```
```
help: consider restricting type parameter `V` with trait `Copy`
|
LL | fn index<'a, K, V: std::marker::Copy>(map: &'a HashMap<K, V>, k: K) -> &'a V {
| +++++++++++++++++++
```
|
||
|---|---|---|
| .. | ||
| tuple-struct-fields | ||
| add-tuple-within-arguments.rs | ||
| add-tuple-within-arguments.stderr | ||
| array-diagnostics.rs | ||
| array-diagnostics.stderr | ||
| builtin-fail.rs | ||
| builtin-fail.stderr | ||
| builtin.rs | ||
| index-float.rs | ||
| index-invalid.rs | ||
| index-invalid.stderr | ||
| indexing-in-macro.rs | ||
| nested-index.rs | ||
| one-tuple.rs | ||
| tup.rs | ||
| tuple-arity-mismatch.rs | ||
| tuple-arity-mismatch.stderr | ||
| tuple-index-fat-types.rs | ||
| tuple-index-not-tuple.rs | ||
| tuple-index-not-tuple.stderr | ||
| tuple-index-out-of-bounds.rs | ||
| tuple-index-out-of-bounds.stderr | ||
| tuple-index.rs | ||
| wrong_argument_ice-2.rs | ||
| wrong_argument_ice-2.stderr | ||
| wrong_argument_ice-3.rs | ||
| wrong_argument_ice-3.stderr | ||
| wrong_argument_ice-4.rs | ||
| wrong_argument_ice-4.stderr | ||
| wrong_argument_ice.rs | ||
| wrong_argument_ice.stderr | ||