rust/tests/ui/impl-trait/in-bindings
Esteban Küber eeadffd926 When more than a single impl and less than 4 could apply, point at them
```
error[E0277]: the trait bound `[[u16; 3]; 2]: Bar` is not satisfied
  --> $DIR/issue-67185-2.rs:21:6
   |
LL | impl Foo for FooImpl {}
   |      ^^^ the trait `Bar` is not implemented for `[[u16; 3]; 2]`
   |
help: the following other types implement trait `Bar`
  --> $DIR/issue-67185-2.rs:9:1
   |
LL | impl Bar for [u16; 4] {}
   | ^^^^^^^^^^^^^^^^^^^^^ `[u16; 4]`
LL | impl Bar for [[u16; 3]; 3] {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `[[u16; 3]; 3]`
note: required by a bound in `Foo`
  --> $DIR/issue-67185-2.rs:14:30
   |
LL | trait Foo
   |       --- required by a bound in this trait
LL | where
LL |     [<u8 as Baz>::Quaks; 2]: Bar,
   |                              ^^^ required by this bound in `Foo`
```
2025-10-31 20:44:01 +00:00
..
bad-nesting.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
bad-nesting.stderr (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
dont-make-def-id.rs Don't make a def id for impl_trait_in_bindings 2024-12-14 18:08:30 +00:00
escaping-bound-var.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
escaping-bound-var.stderr (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
implicit-sized.rs Add implicit sized bound to trait ascription types 2025-07-18 16:48:57 +00:00
implicit-sized.stderr Add implicit sized bound to trait ascription types 2025-07-18 16:48:57 +00:00
lifetime-equality.rs Add impl_trait_in_bindings tests 2025-06-24 19:55:42 +06:00
lifetime-failure.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
lifetime-failure.stderr (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
nesting-lifetime-failure.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
nesting-lifetime-failure.stderr (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
nesting.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
region-lifetimes.rs Add impl_trait_in_bindings tests 2025-06-24 19:55:42 +06:00
simple.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
trait-failure.rs (Re-)Implement impl_trait_in_bindings 2024-12-14 03:21:24 +00:00
trait-failure.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00