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