rust/tests/ui/tuple
Esteban Küber 3f2a63a68b Use trait name instead of full constraint in suggestion message
```
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 {
   |                  +++++++++++++++++++
```
2024-12-07 21:29:58 +00:00
..
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 Use trait name instead of full constraint in suggestion message 2024-12-07 21:29:58 +00:00
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 Use ordinal number in argument error 2024-07-14 13:50:09 +09:00
wrong_argument_ice-4.rs
wrong_argument_ice-4.stderr
wrong_argument_ice.rs
wrong_argument_ice.stderr