rust/tests/ui/traits/non_lifetime_binders
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
..
bad-copy-cond.rs
bad-copy-cond.stderr
bad-sized-cond.rs
bad-sized-cond.stderr
basic.rs
basic.stderr
capture-late-ct-in-anon.rs
capture-late-ct-in-anon.stderr
drop-impl-pred.no.stderr
drop-impl-pred.rs
drop-impl-pred.yes.stderr
fail.rs
fail.stderr
foreach-partial-eq.rs
foreach-partial-eq.stderr
late-bound-in-anon-ct.rs
late-bound-in-anon-ct.stderr
method-probe.rs
method-probe.stderr
missing-assoc-item.rs
missing-assoc-item.stderr
nested-apit-mentioning-outer-bound-var.rs
nested-apit-mentioning-outer-bound-var.stderr
object-lifetime-default-for-late.rs
object-lifetime-default-for-late.stderr
on-dyn.rs
on-dyn.stderr
on-ptr.rs
on-ptr.stderr
on-rpit.rs
on-rpit.stderr
sized-late-bound-issue-114872.rs
sized-late-bound-issue-114872.stderr
supertrait-object-safety.rs
supertrait-object-safety.stderr
type-match-with-late-bound.rs
type-match-with-late-bound.stderr
universe-error1.rs
universe-error1.stderr