Files
rust/tests/ui/methods
Jonathan Brouwer 907464d1b7 Rollup merge of #153682 - estebank:tweak-e0599-note, r=wesleywiser
Tweak E0599 note

When not finding a method for a type, but finding it for a single other impl, special case the output to emit a single message instead of a list.

```
error[E0599]: no associated item named `C` found for struct `Fail<i32, u32>` in the current scope
  --> $DIR/wrong-projection-self-ty-invalid-bivariant-arg2.rs:15:23
   |
LL | struct Fail<T: Proj<Assoc = U>, U>(T);
   | ---------------------------------- associated item `C` not found for this struct
...
LL |     Fail::<i32, u32>::C
   |                       ^ associated item not found in `Fail<i32, u32>`
   |
   = note: the associated item was found for `Fail<i32, i32>`
```
instead of

```
   = note: the associated item was found for
           - `Fail<i32, i32>`
```
2026-03-17 21:20:01 +01:00
..
2025-08-04 17:20:07 +00:00
2023-02-16 15:14:45 +11:00
2023-08-28 17:47:37 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2025-09-23 08:02:54 +02:00
2025-05-31 19:49:19 +05:00