rust/tests/ui/tuple
Esteban Küber 049c32797b On E0277, point at type that doesn't implement bound
When encountering an unmet trait bound, point at local type that doesn't implement the trait:

```
error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied
  --> $DIR/issue-64855.rs:9:19
   |
LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ;
   |                   ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
   |
help: the trait `Foo` is not implemented for `Bar<T>`
  --> $DIR/issue-64855.rs:9:1
   |
LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ;
   | ^^^^^^^^^^^^^^^^^
```
2025-08-22 17:55:15 +00:00
..
tuple-struct-fields Use non-2015 edition paths in tests that do not test for their resolution 2025-06-05 09:19:31 +02:00
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 On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +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 Do not provide field typo suggestions for tuples and tuple structs 2025-08-07 21:39:00 +00:00
indexing-in-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-field-access.rs Do not suggest pinning missing .get_ref() 2025-08-07 21:39:00 +00:00
missing-field-access.stderr Do not suggest pinning missing .get_ref() 2025-08-07 21:39:00 +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 compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
tuple-arity-mismatch.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
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 Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
tuple-index-out-of-bounds.rs
tuple-index-out-of-bounds.stderr Do not provide field typo suggestions for tuples and tuple structs 2025-08-07 21:39:00 +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