rust/tests/ui/dst
Esteban Küber 5b54286640 Remove detail from label/note that is already available in other note
Remove the "which is required by `{root_obligation}`" post-script in
"the trait `X` is not implemented for `Y`" explanation in E0277. This
information is already conveyed in the notes explaining requirements,
making it redundant while making the text (particularly in labels)
harder to read.

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
vs the prior

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`, which is required by `Option<NotCopy>: Copy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
2024-10-29 16:26:57 +00:00
..
dst-bad-assign-2.rs
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
dst-bad-assign-3.stderr
dst-bad-assign.rs
dst-bad-assign.stderr
dst-bad-coerce1.rs
dst-bad-coerce1.stderr
dst-bad-coerce2.rs
dst-bad-coerce2.stderr
dst-bad-coerce3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dst-bad-coerce3.stderr
dst-bad-coerce4.rs
dst-bad-coerce4.stderr
dst-bad-coercions.rs
dst-bad-coercions.stderr
dst-bad-deep-2.rs
dst-bad-deep-2.stderr
dst-bad-deep.rs
dst-bad-deep.stderr
dst-index.rs
dst-index.stderr
dst-object-from-unsized-type.rs
dst-object-from-unsized-type.stderr
dst-rvalue.rs
dst-rvalue.stderr
dst-sized-trait-param.rs
dst-sized-trait-param.stderr
issue-90528-unsizing-not-suggestion-110063.rs
issue-90528-unsizing-not-suggestion-110063.stderr
issue-90528-unsizing-suggestion-1.rs
issue-90528-unsizing-suggestion-1.stderr
issue-90528-unsizing-suggestion-2.rs
issue-90528-unsizing-suggestion-2.stderr
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
issue-90528-unsizing-suggestion-4.rs
issue-90528-unsizing-suggestion-4.stderr
issue-113447.rs
issue-113447.stderr Provide better suggestions for T == &T and &T == T 2023-12-16 19:56:50 -08:00