rust/tests/ui/traits/object
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
..
auto-dedup-in-impl.rs
auto-dedup-in-impl.stderr
auto-dedup.rs
bounds-cycle-1.rs
bounds-cycle-2.rs
bounds-cycle-3.rs
bounds-cycle-4.rs
enforce-supertrait-projection.rs Ensure that dyn trait bounds stay sorted 2023-09-07 06:57:08 +00:00
enforce-supertrait-projection.stderr Ensure that dyn trait bounds stay sorted 2023-09-07 06:57:08 +00:00
exclusion.rs
generics.rs
issue-33140-traitobject-crate.rs
issue-33140-traitobject-crate.stderr
issue-44454-1.rs
issue-44454-1.stderr
issue-44454-2.rs
issue-44454-2.stderr
issue-44454-3.rs
issue-44454-3.stderr
lifetime-first.rs
macro-matcher.rs
macro-matcher.stderr
print_vtable_sizes.rs Don't emit useless vptrs for marker traits 2023-07-19 12:06:31 +00:00
print_vtable_sizes.stdout Don't emit useless vptrs for marker traits 2023-07-19 12:06:31 +00:00
safety.rs
safety.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
supertrait-lifetime-bound.rs
supertrait-lifetime-bound.stderr
vs-lifetime-2.rs
vs-lifetime-2.stderr
vs-lifetime.rs
vs-lifetime.stderr
with-lifetime-bound.rs
with-self-in-projection-output-bad.rs
with-self-in-projection-output-bad.stderr
with-self-in-projection-output-good.rs
with-self-in-projection-output-repeated-supertrait.rs