rust/tests/ui/pattern/deref-patterns
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
..
usefulness In rustc_pattern_analysis, put true witnesses before false witnesses 2025-07-28 02:01:39 +03:00
bindings.rs let deref patterns participate in usefulness/exhaustiveness 2025-05-06 18:53:55 -07:00
branch.rs pattern typing for immutable implicit deref patterns 2025-04-16 14:42:56 -07:00
byte-string-type-errors.rs always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
byte-string-type-errors.stderr always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
cant_move_out_of_pattern.rs move existing tests away from using boxes 2025-04-24 14:25:27 -07:00
cant_move_out_of_pattern.stderr move existing tests away from using boxes 2025-04-24 14:25:27 -07:00
closure_capture.rs let deref patterns participate in usefulness/exhaustiveness 2025-05-06 18:53:55 -07:00
const-pats-do-not-mislead-inference.rs always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
const-pats-do-not-mislead-inference.stable.stderr always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
deref-box.rs let deref patterns participate in usefulness/exhaustiveness 2025-05-06 18:53:55 -07:00
dont-ice-on-slice-in-deref-pat-in-closure.rs EUV: fix place of deref pattern's interior's scrutinee 2025-03-13 01:01:26 -07:00
fake_borrows.rs move existing tests away from using boxes 2025-04-24 14:25:27 -07:00
fake_borrows.stderr move existing tests away from using boxes 2025-04-24 14:25:27 -07:00
implicit-const-deref.rs don't peel ADTs the pattern could match 2025-04-16 15:42:12 -07:00
implicit-const-deref.stderr don't peel ADTs the pattern could match 2025-04-16 15:42:12 -07:00
implicit-cow-deref.rs let deref patterns participate in usefulness/exhaustiveness 2025-05-06 18:53:55 -07:00
needs-gate.rs always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
needs-gate.stderr always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
recursion-limit.rs respect the tcx's recursion limit when peeling 2025-04-16 15:42:12 -07:00
recursion-limit.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
ref-mut.rs register DerefMut bounds for implicit mutable derefs 2025-04-16 14:42:56 -07:00
ref-mut.stderr register DerefMut bounds for implicit mutable derefs 2025-04-16 14:42:56 -07:00
strings.rs always peel &mut, to allow matching on &mut str 2025-05-05 04:29:33 -07:00
typeck.rs pattern typing for immutable implicit deref patterns 2025-04-16 14:42:56 -07:00
typeck_fail.rs match ergonomics for string and byte string literal patterns 2025-05-05 04:10:49 -07:00
typeck_fail.stderr match ergonomics for string and byte string literal patterns 2025-05-05 04:10:49 -07:00
unsatisfied-bounds.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
unsatisfied-bounds.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00