Files
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
261 B
Rust
Raw Normal View History

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;
//~^ ERROR at least one trait is required for an object type [E0224]
//~| ERROR relaxed bounds are not permitted in trait object types
2019-05-02 02:21:20 +01:00
fn main() {}