rust/tests/ui/higher-ranked/trait-bounds
Matthias Krüger 1e1e64f10f
Rollup merge of #127844 - chenyukang:yukang-fix-type-bound-127555, r=jieyouxu
Remove invalid further restricting suggestion for type bound

This PR partially addresses #127555, it will remove the obvious error suggestion:

```console
   |                      ^^^^ required by this bound in `<Baz as Foo>::bar`
help: consider further restricting this bound
   |
12 |         F: FnMut() + Send + std::marker::Send,
   |                           +++++++++++++++++++
```

I may create another PR to get a better diagnostic for `impl has stricter requirements than trait` scenario.
2024-07-17 16:22:32 +02:00
..
normalize-under-binder Add opaque type test 2024-06-20 09:20:45 +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
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 instantiate higher ranked goals in candidate selection 2024-07-10 14:13:16 +02:00
hrtb-higher-ranker-supertraits.rs instantiate higher ranked goals in candidate selection 2024-07-10 14:13:16 +02:00
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
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
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
issue-46989.stderr
issue-57639.rs
issue-58451.rs
issue-58451.stderr Use ordinal number in argument error 2024-07-14 13:50:09 +09:00
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
trivial-does-not-hold.rs
trivial-does-not-hold.stderr