rust/tests/ui/try-trait
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-interconversion.rs Remove feature(control_flow_enum) in tests 2024-09-25 19:00:19 -07:00
bad-interconversion.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
bad-question-mark-on-trait-object.rs Point at type that doesn't implement needed trait 2025-02-21 18:30:07 +00:00
bad-question-mark-on-trait-object.stderr Point at type that doesn't implement needed trait 2025-02-21 18:30:07 +00:00
incompatible-types-with-question-mark-51632.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
incompatible-types-with-question-mark-51632.stderr Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
issue-32709.rs Move tests 2023-08-28 17:47:37 -03:00
issue-32709.stderr Don't mention FromResidual on bad ? 2025-02-18 17:34:16 +00:00
option-to-result.rs
option-to-result.stderr Tweak E0277 when predicate comes indirectly from ? 2025-02-20 18:15:39 +00:00
try-as-monad.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-on-option-diagnostics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-on-option-diagnostics.stderr Tweak E0277 when predicate comes indirectly from ? 2025-02-20 18:15:39 +00:00
try-on-option.rs
try-on-option.stderr Tweak E0277 when predicate comes indirectly from ? 2025-02-20 18:15:39 +00:00
try-operator-custom.rs Remove feature(control_flow_enum) in tests 2024-09-25 19:00:19 -07:00
try-operator-expansion-hygiene.rs cleaned up some tests 2025-07-10 18:47:20 +05:00
try-operator-on-main.rs
try-operator-on-main.stderr Tweak E0277 when predicate comes indirectly from ? 2025-02-20 18:15:39 +00:00
try-operator-various-contexts.rs cleaned up some tests 2025-07-10 18:47:20 +05:00
try-poll.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yeet-for-option.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yeet-for-result.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00