2019-05-01 20:21:20 -05:00
|
|
|
// Test that `dyn ?Sized` (i.e., a trait object with only a maybe buond) is not allowed.
|
|
|
|
|
|
|
|
type _0 = dyn ?Sized;
|
2019-06-21 11:12:28 -05:00
|
|
|
//~^ ERROR at least one trait is required for an object type [E0224]
|
2019-05-19 16:26:42 -05:00
|
|
|
//~| ERROR ?Trait` is not permitted in trait object types
|
2019-05-01 20:21:20 -05:00
|
|
|
|
|
|
|
fn main() {}
|