rust/tests/ui/object-safety
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
..
assoc_const_bounds_sized.rs Update existing UI tests 2023-07-28 22:23:21 +02:00
assoc_const_bounds.rs Update existing UI tests 2023-07-28 22:23:21 +02:00
assoc_type_bounds2.rs Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
assoc_type_bounds2.stderr Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
assoc_type_bounds_implicit_sized.fixed Suggest relaxing implicit type Assoc: Sized; bound 2023-10-19 00:07:16 +00:00
assoc_type_bounds_implicit_sized.rs Suggest relaxing implicit type Assoc: Sized; bound 2023-10-19 00:07:16 +00:00
assoc_type_bounds_implicit_sized.stderr Suggest relaxing implicit type Assoc: Sized; bound 2023-10-19 00:07:16 +00:00
assoc_type_bounds_sized_others.rs Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
assoc_type_bounds_sized_others.stderr Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
assoc_type_bounds_sized_unnecessary.rs Make unused_associated_type_bounds's lint level changeable 2023-07-05 07:46:05 +00:00
assoc_type_bounds_sized_unnecessary.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
assoc_type_bounds_sized_used.rs Do not require associated types with Self: Sized to uphold bounds when confirming object candidate 2023-09-02 05:08:38 +00:00
assoc_type_bounds_sized_used.stderr Suggest relaxing implicit type Assoc: Sized; bound 2023-10-19 00:07:16 +00:00
assoc_type_bounds_sized.rs Add more tests 2023-07-05 07:46:05 +00:00
assoc_type_bounds.rs Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
assoc_type_bounds.stderr Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
call-when-assoc-ty-is-sized.rs Do not require associated types with Self: Sized to uphold bounds when confirming object candidate 2023-09-02 05:08:38 +00:00
issue-19538.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-19538.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
issue-102762.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102762.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102933.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-106247.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-associated-consts.curr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-associated-consts.object_safe_for_dispatch.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety-associated-consts.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-bounds.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-by-value-self-use.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-by-value-self-use.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
object-safety-by-value-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-generics.curr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-generics.object_safe_for_dispatch.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety-generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-issue-22040.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-issue-22040.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
object-safety-mentions-Self.curr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-mentions-Self.object_safe_for_dispatch.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety-mentions-Self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-no-static.curr.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
object-safety-no-static.object_safe_for_dispatch.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
object-safety-no-static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-phantom-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-sized-2.curr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-sized-2.object_safe_for_dispatch.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety-sized-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-sized.curr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-sized.object_safe_for_dispatch.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
object-safety-sized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-supertrait-mentions-GAT.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-supertrait-mentions-GAT.stderr always show and explain sub region 2023-10-08 09:59:51 +00:00
object-safety-supertrait-mentions-Self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
object-safety-supertrait-mentions-Self.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00