rust/tests/ui/try-trait
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
..
bad-interconversion.rs Remove feature(control_flow_enum) in tests 2024-09-25 19:00:19 -07:00
bad-interconversion.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-32709.rs Move tests 2023-08-28 17:47:37 -03:00
issue-32709.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
option-to-result.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
option-to-result.stderr Explicitly specify type parameter on FromResidual impls in stdlib. 2024-08-12 12:54:18 -05:00
try-as-monad.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-on-option-diagnostics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-on-option-diagnostics.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
try-on-option.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
try-on-option.stderr Start using #[diagnostic::do_not_recommend] in the standard library 2024-07-22 07:29:59 +02:00
try-operator-custom.rs Remove feature(control_flow_enum) in tests 2024-09-25 19:00:19 -07:00
try-operator-on-main.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
try-operator-on-main.stderr Fixing span manipulation and indentation of the suggestion introduced by #126187 2024-08-25 20:30:06 +08:00
try-poll.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yeet-for-option.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
yeet-for-result.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00