rust/tests/ui/traits/wf-object/only-maybe-bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
253 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 trait is required for an object type [E0224]
//~| ERROR ?Trait` is not permitted in trait object types
2019-05-01 20:21:20 -05:00
fn main() {}