mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +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 | ||
116308.rs | ||
alias_const_param_ty-1.rs | ||
alias_const_param_ty-1.stderr | ||
alias_const_param_ty-2.rs | ||
const_param_ty_bad_empty_array.rs | ||
const_param_ty_bad_empty_array.stderr | ||
const_param_ty_bad.rs | ||
const_param_ty_bad.stderr | ||
const_param_ty_dyn_compatibility.rs | ||
const_param_ty_dyn_compatibility.stderr | ||
const_param_ty_generic_bounds_do_not_hold.rs | ||
const_param_ty_generic_bounds_do_not_hold.stderr | ||
const_param_ty_good.rs | ||
const_param_ty_impl_bad_field.rs | ||
const_param_ty_impl_bad_field.stderr | ||
const_param_ty_impl_no_structural_eq.rs | ||
const_param_ty_impl_no_structural_eq.stderr | ||
const_param_ty_impl_union.rs | ||
const_param_ty_impl_union.stderr | ||
index-oob-ice-83993.rs | ||
index-oob-ice-83993.stderr | ||
nested_bad_const_param_ty.rs | ||
nested_bad_const_param_ty.stderr | ||
opaque_type_with_non-universal_region_substs_ice-111911.rs | ||
reference_pointee_is_const_param-1.rs | ||
reference_pointee_is_const_param-1.stderr | ||
reference_pointee_is_const_param-2.rs | ||
reference_pointee_is_const_param-2.stderr | ||
suggest_feature_only_when_possible.rs | ||
suggest_feature_only_when_possible.stderr | ||
trait_objects_as_a_const_generic.rs | ||
trait_objects_as_a_const_generic.stderr | ||
transmutable-ice-110969.rs | ||
transmutable-ice-110969.stderr | ||
unsized_field-1.rs | ||
unsized_field-1.stderr | ||
unsized_field-2.rs | ||
unsized_field-2.stderr | ||
unsizing-wfcheck-issue-126272.rs | ||
unsizing-wfcheck-issue-126272.stderr |