mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() 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` ``` |
||
---|---|---|
.. | ||
auxiliary | ||
const_closure-const_trait_impl-ice-113381.rs | ||
const_closure-const_trait_impl-ice-113381.stderr | ||
effect-param-infer.rs | ||
fallback.rs | ||
group-traits.rs | ||
helloworld.rs | ||
ice-112822-expected-type-for-param.rs | ||
ice-112822-expected-type-for-param.stderr | ||
ice-113375-index-out-of-bounds-generics.rs | ||
infer-fallback.rs | ||
minicore.rs | ||
minicore.stderr | ||
mismatched_generic_args.rs | ||
mismatched_generic_args.stderr | ||
no-explicit-const-params-cross-crate.rs | ||
no-explicit-const-params-cross-crate.stderr | ||
no-explicit-const-params.rs | ||
no-explicit-const-params.stderr | ||
project.rs | ||
span-bug-issue-121418.rs | ||
span-bug-issue-121418.stderr | ||
spec-effectvar-ice.rs | ||
spec-effectvar-ice.stderr | ||
trait-fn-const.rs | ||
trait-fn-const.stderr |