rust/tests/ui/impl-trait/in-trait
Esteban Küber 8c04999226 On object safety error, mention new enum as alternative
When we encounter a `dyn Trait` that isn't object safe, look for its
implementors. If there's one, mention using it directly If there are
less than 9, mention the possibility of creating a new enum and using
that instead.

Account for object unsafe `impl Trait on dyn Trait {}`.  Make a
distinction between public and sealed traits.

Fix #80194.
2023-10-29 23:55:46 +00:00
..
auxiliary
anonymize-binders-for-refine.rs
assumed-wf-bounds-in-impl.rs
bad-item-bound-within-rpitit-2.rs
bad-item-bound-within-rpitit-2.stderr
bad-item-bound-within-rpitit.rs
bad-item-bound-within-rpitit.stderr
box-coerce-span-in-default.rs
check-wf-on-non-defaulted-rpitit.rs
check-wf-on-non-defaulted-rpitit.stderr
deep-match-works.rs
deep-match.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
deep-match.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-type-err-2.rs
default-body-type-err-2.stderr
default-body-type-err.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-type-err.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-with-rpit.rs
default-body.rs
default-method-binder-shifting.rs
default-method-constraint.rs
doesnt-satisfy.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
doesnt-satisfy.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
dont-project-to-rpitit-with-no-value.rs
dont-project-to-rpitit-with-no-value.stderr
early.rs
encode.rs
foreign-dyn-error.rs
foreign-dyn-error.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
foreign.rs
gat-outlives.rs Fix outlives suggestion for GAT in RPITIT 2023-10-16 15:42:26 +00:00
gat-outlives.stderr Fix outlives suggestion for GAT in RPITIT 2023-10-16 15:42:26 +00:00
generics-mismatch.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
generics-mismatch.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102140.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102140.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102301.rs
issue-102571.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102571.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
lifetime-in-associated-trait-bound.rs
method-signature-matches.lt.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
method-signature-matches.mismatch_async.stderr
method-signature-matches.mismatch.stderr
method-signature-matches.rs
method-signature-matches.too_few.stderr
method-signature-matches.too_many.stderr
missing-lt-outlives-in-rpitit-114274.rs
missing-lt-outlives-in-rpitit-114274.stderr
nested-rpitit.rs
object-safety-sized.rs
object-safety.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
object-safety.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
opaque-in-impl-is-opaque.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
opaque-in-impl-is-opaque.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
opaque-in-impl.rs
opaque-variances.rs
outlives-in-nested-rpit.rs
refine.rs
refine.stderr
return-dont-satisfy-bounds.rs
return-dont-satisfy-bounds.stderr
reveal.rs
rpitit-hidden-types-self-implied-wf-via-param.rs
rpitit-hidden-types-self-implied-wf-via-param.stderr
rpitit-hidden-types-self-implied-wf.rs
rpitit-hidden-types-self-implied-wf.stderr
rpitit-shadowed-by-missing-adt.rs
rpitit-shadowed-by-missing-adt.stderr
sibling-function-constraint.rs Test that RPITITs have RPIT scope and not impl-wide scope 2023-10-13 21:01:36 +00:00
sibling-function-constraint.stderr Test that RPITITs have RPIT scope and not impl-wide scope 2023-10-13 21:01:36 +00:00
signature-mismatch.failure.stderr
signature-mismatch.rs
specialization-broken.rs
specialization-broken.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
specialization-substs-remap.rs
success.rs
suggest-missing-item.fixed
suggest-missing-item.rs
suggest-missing-item.stderr
trait-more-generics-than-impl.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
trait-more-generics-than-impl.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
unconstrained-lt.rs
unconstrained-lt.stderr
variance.rs
variance.stderr
variances-of-gat.rs
wf-bounds.rs
wf-bounds.stderr
where-clause.rs