rust/tests/ui/block-result
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
..
block-must-not-have-result-do.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
block-must-not-have-result-do.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
block-must-not-have-result-res.rs
block-must-not-have-result-res.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
block-must-not-have-result-while.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
block-must-not-have-result-while.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
consider-removing-last-semi.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
consider-removing-last-semi.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
consider-removing-last-semi.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-3563.rs
issue-3563.stderr Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00
issue-5500.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-5500.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-11714.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-11714.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-13428.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-13428.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-13624.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-13624.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-20862.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-20862.stderr Point to where missing return type should go 2023-10-04 21:09:54 +00:00
issue-22645.rs
issue-22645.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
unexpected-return-on-unit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unexpected-return-on-unit.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00