rust/src/test/ui/traits/wf-trait-object-only-maybe-bound.rs

7 lines
207 B
Rust
Raw Normal View History

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;
//~^ ERROR at least one non-builtin trait is required for an object type [E0224]
fn main() {}