mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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 | ||
mod_dir_implicit_aux | ||
mod_dir_simple | ||
module-polymorphism3-files | ||
issue-1920-1.rs | ||
issue-1920-1.stderr | ||
issue-1920-2.rs | ||
issue-1920-2.stderr | ||
issue-1920-3.rs | ||
issue-1920-3.stderr | ||
issue-13872.rs | ||
issue-56411-aux.rs | ||
issue-56411.rs | ||
issue-56411.stderr | ||
issue-107649.rs | ||
issue-107649.stderr | ||
mod_dir_implicit.rs | ||
mod_dir_path2.rs | ||
mod_dir_path3.rs | ||
mod_dir_path_multi.rs | ||
mod_dir_path.rs | ||
mod_dir_recursive.rs | ||
mod_dir_simple.rs | ||
mod_file_aux.rs | ||
mod_file_with_path_attr.rs | ||
mod_file.rs | ||
mod-inside-fn.rs | ||
mod-view-items.rs | ||
path-invalid-form.rs | ||
path-invalid-form.stderr | ||
path-macro.rs | ||
path-macro.stderr | ||
path-no-file-name.rs | ||
path-no-file-name.stderr | ||
special_module_name_ignore.rs | ||
special_module_name.rs | ||
special_module_name.stderr |