mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +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` ``` |
||
---|---|---|
.. | ||
exclusive-range-patterns-2021.rs | ||
exclusive-range-patterns-2021.stderr | ||
impossible_range.fixed | ||
impossible_range.rs | ||
impossible_range.stderr | ||
issue-54505-no-literals.fixed | ||
issue-54505-no-literals.rs | ||
issue-54505-no-literals.stderr | ||
issue-54505-no-std.rs | ||
issue-54505-no-std.stderr | ||
issue-54505.fixed | ||
issue-54505.rs | ||
issue-54505.stderr | ||
issue-73553-misinterp-range-literal.rs | ||
issue-73553-misinterp-range-literal.stderr | ||
misleading-field-access-hint.rs | ||
misleading-field-access-hint.stderr | ||
range_inclusive.rs | ||
range_traits-1.rs | ||
range_traits-1.stderr | ||
range_traits-2.rs | ||
range_traits-2.stderr | ||
range_traits-3.rs | ||
range_traits-3.stderr | ||
range_traits-4.rs | ||
range_traits-5.rs | ||
range_traits-6.rs | ||
range_traits-6.stderr | ||
range_traits-7.rs | ||
range-1.rs | ||
range-1.stderr | ||
range-inclusive-pattern-precedence2.rs | ||
range-inclusive-pattern-precedence2.stderr | ||
range-inclusive-pattern-precedence.fixed | ||
range-inclusive-pattern-precedence.rs | ||
range-inclusive-pattern-precedence.stderr | ||
range-pattern-out-of-bounds-issue-68972.rs | ||
range-pattern-out-of-bounds-issue-68972.stderr |