1 // Test that `dyn ?Sized` (i.e., a trait object with only a maybe buond) is not allowed, when just
2 // `?Sized` results from trait alias expansion.
4 #![feature(trait_alias)]
8 // Nest a couple of levels deep:
12 // Straight list expansion:
14 //~^ ERROR at least one trait is required for an object type [E0224]
20 //~^ ERROR at least one trait is required for an object type [E0224]