Files
rust/tests/ui/traits
Jacob Pratt 64c43edffe Rollup merge of #145627 - compiler-errors:const-supertrait-dyn-compat, r=fee1-dead
Unconditionally-const supertraits are considered not dyn compatible

Let's save some space in the design of const traits by making `dyn Trait` where `trait Trait: const Super` not dyn compatible.

Such a trait cannot satisfy `dyn Trait: Trait`; we could in the future make this dyn compatible but *NOT* implement `Trait`, but that's a bit weird and seems like it needs to be independently justified moving forward.

Fixes https://github.com/rust-lang/rust/issues/145198

r? fee1-dead
2025-08-21 01:12:21 -04:00
..
2025-08-19 21:27:10 +02:00
2025-08-19 21:27:10 +02:00
2025-08-14 15:32:50 +02:00
2025-07-25 20:38:54 +05:00
2025-06-08 11:25:09 +05:00
2024-10-18 00:33:50 +02:00
2025-08-09 16:27:20 +05:00
2025-07-31 21:25:49 +05:00
2025-08-05 19:34:46 +05:00
2025-08-19 21:27:10 +02:00
2025-08-09 16:27:20 +05:00
2024-04-07 17:38:07 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2023-04-20 15:06:17 -03:00
2023-10-13 19:18:46 +00:00
2025-02-03 10:39:32 -05:00
2023-12-05 17:15:46 +00:00
2025-08-09 16:27:20 +05:00
2025-06-30 11:50:19 +05:00
2025-06-30 11:50:19 +05:00
2024-01-05 10:00:59 +00:00
2023-01-13 18:20:24 +00:00
2025-08-05 19:34:46 +05:00
2025-08-05 19:34:46 +05:00