// issue: 120878 fn main() { struct StructA { _marker: std::marker::PhantomData (A, B)>, } struct StructB { a: StructA, //~^ ERROR: the size for values of type `[u8]` cannot be known at compilation time [E0277] } trait Trait { type P; } impl Trait for () { type P = [u8]; //~^ ERROR: the size for values of type `[u8]` cannot be known at compilation time [E0277] } }