mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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` ``` |
||
---|---|---|
.. | ||
auxiliary | ||
ambiguous.rs | ||
ambiguous.stderr | ||
basic.rs | ||
bounds.rs | ||
bounds.stderr | ||
cross-crate.rs | ||
cross-crate.stderr | ||
dont-elaborate-non-self.rs | ||
dont-elaborate-non-self.stderr | ||
generic-default-in-dyn.rs | ||
generic-default-in-dyn.stderr | ||
impl.rs | ||
impl.stderr | ||
import-cross-crate.rs | ||
import.rs | ||
issue-60021-assoc-method-resolve.rs | ||
issue-60755.rs | ||
issue-72415-assoc-const-resolve.rs | ||
issue-75983.rs | ||
issue-83613.rs | ||
issue-83613.stderr | ||
issue-107747-do-not-assemble-supertraits.rs | ||
issue-108072-unmet-trait-alias-bound.rs | ||
issue-108072-unmet-trait-alias-bound.stderr | ||
issue-108132-unmet-trait-alias-bound-on-generic-impl.rs | ||
issue-108132-unmet-trait-alias-bound-on-generic-impl.stderr | ||
maybe-bound.rs | ||
no-duplicates.rs | ||
no-duplicates.stderr | ||
no-extra-traits.rs | ||
no-extra-traits.stderr | ||
not-a-marker.rs | ||
not-a-marker.stderr | ||
object-fail.rs | ||
object-fail.stderr | ||
object-wf.rs | ||
object.rs | ||
only-maybe-bound.rs | ||
only-maybe-bound.stderr | ||
only-require-assocs-from-supertraits.rs | ||
self-in-const-generics.rs | ||
self-in-const-generics.stderr | ||
self-in-generics.rs | ||
self-in-generics.stderr | ||
style_lint.rs | ||
style_lint.stderr | ||
suggest-trait-alias-instead-of-type.fixed | ||
suggest-trait-alias-instead-of-type.rs | ||
suggest-trait-alias-instead-of-type.stderr | ||
syntax-fail.rs | ||
syntax-fail.stderr | ||
syntax.rs | ||
wf.rs | ||
wf.stderr |