mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +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 | ||
align.rs | ||
autoderef.rs | ||
borrow-after-move.rs | ||
borrow-after-move.stderr | ||
box-fnonce.rs | ||
by-value-trait-dyn-compatibility-rpass.rs | ||
by-value-trait-dyn-compatibility-with-default.rs | ||
by-value-trait-dyn-compatibility.rs | ||
by-value-trait-dyn-compatibility.stderr | ||
double-move.rs | ||
double-move.stderr | ||
ice-size_and_align_of-closure-not-supported-88212.rs | ||
ice-size_and_align_of-closure-not-supported-88212.stderr | ||
issue-30276-feature-flagged.rs | ||
issue-30276-feature-flagged.stderr | ||
issue-30276.rs | ||
issue-30276.stderr | ||
issue-50940-with-feature.rs | ||
issue-50940-with-feature.stderr | ||
issue-50940.rs | ||
issue-50940.stderr | ||
issue-67981.rs | ||
issue-67981.stderr | ||
reference-unsized-locals.rs | ||
rust-call.rs | ||
rust-call.stderr | ||
simple-unsized-locals.rs | ||
suggest-borrow.rs | ||
suggest-borrow.stderr | ||
unsized-exprs2.rs | ||
unsized-exprs2.stderr | ||
unsized-exprs3.rs | ||
unsized-exprs3.stderr | ||
unsized-exprs-rpass.rs | ||
unsized-exprs.rs | ||
unsized-exprs.stderr | ||
unsized-index.rs | ||
unsized-locals-using-unsized-fn-params.rs | ||
unsized-locals-using-unsized-fn-params.stderr | ||
unsized-parameters.rs |