rust/tests/ui/higher-ranked/trait-bounds
Esteban Küber 5b54286640 Remove detail from label/note that is already available in other note
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`
```
2024-10-29 16:26:57 +00:00
..
normalize-under-binder Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
complex.rs
due-to-where-clause.rs
due-to-where-clause.stderr
fn-ptr.rs
future.rs
hang-on-deeply-nested-dyn.rs
hang-on-deeply-nested-dyn.stderr
hrtb-binder-levels-in-object-types.rs
hrtb-cache-issue-54302.rs
hrtb-cache-issue-54302.stderr
hrtb-conflate-regions.rs
hrtb-conflate-regions.stderr
hrtb-debruijn-in-receiver.rs
hrtb-debruijn-in-receiver.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
hrtb-debruijn-object-types-in-closures.rs
hrtb-doesnt-borrow-self-1.rs
hrtb-doesnt-borrow-self-1.stderr
hrtb-doesnt-borrow-self-2.rs
hrtb-doesnt-borrow-self-2.stderr
hrtb-exists-forall-fn.rs
hrtb-exists-forall-fn.stderr
hrtb-exists-forall-trait-contravariant.rs
hrtb-exists-forall-trait-contravariant.stderr
hrtb-exists-forall-trait-covariant.rs
hrtb-exists-forall-trait-covariant.stderr
hrtb-exists-forall-trait-invariant.rs
hrtb-exists-forall-trait-invariant.stderr
hrtb-fn-like-trait-object.rs
hrtb-fn-like-trait.rs
hrtb-higher-ranker-supertraits-transitive.rs
hrtb-higher-ranker-supertraits-transitive.stderr
hrtb-higher-ranker-supertraits.rs
hrtb-higher-ranker-supertraits.stderr Remove invalid further restricting for type bound 2024-07-17 19:08:37 +08:00
hrtb-identity-fn-borrows.rs
hrtb-identity-fn-borrows.stderr
hrtb-just-for-static.rs directory size limit :< 2023-05-30 13:04:25 +02:00
hrtb-just-for-static.stderr
hrtb-malformed-lifetime-generics.rs
hrtb-malformed-lifetime-generics.stderr
hrtb-opt-in-copy.rs
hrtb-parse.rs
hrtb-perfect-forwarding.polonius.stderr
hrtb-perfect-forwarding.rs
hrtb-perfect-forwarding.stderr
hrtb-precedence-of-plus-where-clause.rs
hrtb-precedence-of-plus.rs
hrtb-resolve-lifetime.rs
hrtb-trait-object-paren-notation.rs
hrtb-trait-object-passed-to-closure.rs
hrtb-type-outlives.rs
hrtb-unboxed-closure-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hrtb-wrong-kind.rs
hrtb-wrong-kind.stderr
issue-36139-normalize-closure-sig.rs
issue-39292.rs
issue-42114.rs
issue-43623.rs
issue-46989.rs directory size limit :< 2023-05-30 13:04:25 +02:00
issue-46989.stderr
issue-57639.rs
issue-58451.rs
issue-58451.stderr
issue-59311.rs
issue-59311.stderr
issue-60283.rs
issue-62203-hrtb-ice.rs
issue-62203-hrtb-ice.stderr
issue-88446.rs
issue-88586-hr-self-outlives-in-trait-def.rs
issue-90177.rs
issue-95034.rs
issue-95230.next.stderr
issue-95230.rs
issue-100689.rs
issue-102899.rs
rigid-equate-projections-in-higher-ranked-fn-signature.next.stderr
rigid-equate-projections-in-higher-ranked-fn-signature.rs
span-bug-issue-121597.rs
span-bug-issue-121597.stderr Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
trivial-does-not-hold.rs
trivial-does-not-hold.stderr