rust/tests/ui/indexing
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
..
ambiguity-after-deref-step.rs add tests 2025-09-30 12:02:43 +02:00
ambiguity-after-deref-step.stderr add tests 2025-09-30 12:02:43 +02:00
index-bot.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
index-bot.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
index-bounds.rs check index value <= 0xFFFF_FF00 2024-06-01 09:40:46 +08:00
index-bounds.stderr check index value <= 0xFFFF_FF00 2024-06-01 09:40:46 +08:00
index-help.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
index-help.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
index_message.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
index_message.stderr indexing: reword help 2025-10-01 07:39:03 +00:00
indexing-integral-types.rs cleaned up some tests 2025-06-29 15:37:33 +05:00
indexing-integral-types.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
indexing-requires-a-uint.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
indexing-requires-a-uint.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
indexing-spans-caller-location.rs chore: fix typos 2024-12-31 23:46:39 +08:00
point-at-index-for-obligation-failure.rs Always point at index span on index obligation failure 2023-11-13 00:52:10 +00:00
point-at-index-for-obligation-failure.stderr When a trait isn't implemented, but another similar impl is found, point at it: 2025-10-31 20:38:31 +00:00