rust/tests/ui/mut
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
..
mut-cant-alias.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-cant-alias.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
mut-cross-borrowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-cross-borrowing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
mut-pattern-internal-mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-pattern-internal-mutability.stderr Better span for "make binding mutable" suggestion 2024-07-04 02:02:21 +00:00
mut-pattern-mismatched.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
mut-pattern-mismatched.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
mut-ref.rs Feature gate 2024-03-27 11:20:28 -04:00
mut-suggestion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-suggestion.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
mutable-class-fields-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable-class-fields-2.stderr Tweak &mut self suggestion span 2025-01-28 19:35:51 +00:00
mutable-class-fields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable-class-fields.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
mutable-enum-indirect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutable-enum-indirect.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
no-mut-lint-for-desugared-mut.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00