rust/tests/ui/dst
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
..
dst-bad-assign-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-assign-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dst-bad-assign-3.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
dst-bad-assign-3.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
dst-bad-assign.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
dst-bad-assign.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
dst-bad-coerce1.rs Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-coerce1.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
dst-bad-coerce2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-coerce2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-coerce3.rs Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-coerce3.stderr Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-coerce4.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
dst-bad-coerce4.stderr Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-coercions.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-coercions.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-deep-2.rs Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-deep-2.stderr Delete tuple unsizing 2025-02-27 10:26:33 +00:00
dst-bad-deep.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-deep.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
dst-index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-index.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-object-from-unsized-type.current.stderr find the right error source when we can't unsize 2025-10-27 12:26:52 +01:00
dst-object-from-unsized-type.next.stderr find the right error source when we can't unsize 2025-10-27 12:26:52 +01:00
dst-object-from-unsized-type.rs find the right error source when we can't unsize 2025-10-27 12:26:52 +01:00
dst-rvalue.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-rvalue.stderr Detect * operator on !Sized expression 2024-08-08 17:35:40 +00:00
dst-sized-trait-param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-sized-trait-param.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
issue-90528-unsizing-not-suggestion-110063.rs Fix invalid slice coercion suggestion reported in turbofish 2023-08-01 12:34:31 +02:00
issue-90528-unsizing-not-suggestion-110063.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
issue-90528-unsizing-suggestion-1.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-1.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
issue-90528-unsizing-suggestion-2.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-2.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
issue-90528-unsizing-suggestion-3.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-3.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
issue-90528-unsizing-suggestion-4.rs Add suggestion to diagnostic when user has array but trait wants slice. 2023-03-07 00:39:34 -05:00
issue-90528-unsizing-suggestion-4.stderr When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
issue-113447.rs Provide better suggestions for T == &T and &T == T 2023-12-16 19:56:50 -08:00
issue-113447.stderr Provide better suggestions for T == &T and &T == T 2023-12-16 19:56:50 -08:00