rust/tests/ui/traits/object
bors a395214a3a Auto merge of #116405 - estebank:issue-103155, r=davidtwco
Detect object safety errors when assoc type is missing

When an associated type with GATs isn't specified in a `dyn Trait`, emit an object safety error instead of only complaining about the missing associated type, as it will lead the user down a path of three different errors before letting them know that what they were trying to do is impossible to begin with.

Fix #103155.
2023-10-30 22:47:48 +00:00
..
auto-dedup-in-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-dedup-in-impl.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-dedup.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bounds-cycle-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33140-traitobject-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33140-traitobject-crate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44454-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lifetime-first.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-matcher.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-matcher.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-unsafe-missing-assoc-type.rs Add test 2023-10-30 22:12:07 +00:00
object-unsafe-missing-assoc-type.stderr Add test 2023-10-30 22:12:07 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
safety.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
supertrait-lifetime-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
supertrait-lifetime-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vs-lifetime.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
vs-lifetime.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
with-lifetime-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-bad.rs Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
with-self-in-projection-output-bad.stderr Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
with-self-in-projection-output-good.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
with-self-in-projection-output-repeated-supertrait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00