mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
5b54286640
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` ``` |
||
---|---|---|
.. | ||
assoc-ty.current.stderr | ||
assoc-ty.next.stderr | ||
assoc-ty.rs | ||
auto-is-contextual.rs | ||
auto-trait-projection-recursion.rs | ||
auto-trait-validation.fixed | ||
auto-trait-validation.rs | ||
auto-trait-validation.stderr | ||
auto-traits.rs | ||
auto-traits.stderr | ||
bad-generics-on-dyn.rs | ||
bad-generics-on-dyn.stderr | ||
has-arguments.rs | ||
has-arguments.stderr | ||
issue-23080-2.current.stderr | ||
issue-23080-2.next.stderr | ||
issue-23080-2.rs | ||
issue-23080.rs | ||
issue-23080.stderr | ||
issue-83857-ub.rs | ||
issue-83857-ub.stderr | ||
issue-84075.rs | ||
issue-84075.stderr | ||
issue-117789.rs | ||
issue-117789.stderr | ||
pre-cfg.rs | ||
pre-cfg.stderr | ||
str-contains-slice-conceptually.rs | ||
str-contains-slice-conceptually.stderr | ||
typeck-auto-trait-no-supertraits-2.rs | ||
typeck-auto-trait-no-supertraits-2.stderr | ||
typeck-auto-trait-no-supertraits.rs | ||
typeck-auto-trait-no-supertraits.stderr | ||
typeck-default-trait-impl-constituent-types-2.rs | ||
typeck-default-trait-impl-constituent-types-2.stderr | ||
typeck-default-trait-impl-constituent-types.rs | ||
typeck-default-trait-impl-constituent-types.stderr | ||
typeck-default-trait-impl-negation.rs | ||
typeck-default-trait-impl-negation.stderr | ||
typeck-default-trait-impl-precedence.rs | ||
typeck-default-trait-impl-precedence.stderr |