rust/tests/ui/traits/fn-pointer
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
..
bare-fn-no-impl-fn-ptr-99875.rs Make bare-fn test less dependent on path width 2025-01-09 17:32:29 +00:00
bare-fn-no-impl-fn-ptr-99875.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
fn-trait-cast-diagnostic.rs diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
fn-trait-cast-diagnostic.stderr diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
hrtb-assoc-fn-traits-28994.rs Add test for issue 28994 2024-10-07 16:30:47 +00:00
suggest-wrap-parens-method.fixed diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
suggest-wrap-parens-method.rs diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
suggest-wrap-parens-method.stderr diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
suggest-wrap-parens.fixed diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
suggest-wrap-parens.rs diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00
suggest-wrap-parens.stderr diagnostics: wrap fn cast suggestions in parens 2024-09-26 18:17:52 -07:00