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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
index-float.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
index-invalid.rs
index-invalid.stderr recover primary span label 2023-11-16 17:00:23 +00:00
indexing-in-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-index.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
one-tuple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tup.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tuple-arity-mismatch.rs
tuple-arity-mismatch.stderr
tuple-index-fat-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
tuple-index-not-tuple.rs
tuple-index-not-tuple.stderr recover primary span label 2023-11-16 17:00:23 +00:00
tuple-index-out-of-bounds.rs
tuple-index-out-of-bounds.stderr recover primary span label 2023-11-16 17:00:23 +00:00
tuple-index.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
wrong_argument_ice-2.rs
wrong_argument_ice-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Use verbose style for argument removal suggestion 2024-07-05 19:40:09 +00:00
wrong_argument_ice.rs
wrong_argument_ice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00