mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 04:18:18 +00:00
Default sizedness bounds were not being added to `explicit_super_predicates_of` and `explicit_implied_predicates_of` which meant that a trait bound added to a associated type projection would be missing the implied predicate of the default sizedness supertrait of that trait. An unexpected consequence of this change was that the check for multiple principals was now finding an additional `MetaSized` principal when eagerly expanding trait aliases. Instead of special-casing trait aliases as different from traits and not adding a `MetaSized` supertrait to trait aliases, filter out `MetaSized` when lowering `dyn Trait`.
10 lines
309 B
Plaintext
10 lines
309 B
Plaintext
error[E0275]: overflow evaluating the requirement `<T as Trait>::Assoc: Trait`
|
|
--> $DIR/normalize-param-env-4.rs:19:26
|
|
|
|
|
LL | <T as Trait>::Assoc: Trait,
|
|
| ^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0275`.
|