]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/wf-object/only-maybe-bound.rs
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
[rust.git] / src / test / ui / traits / wf-object / only-maybe-bound.rs
1 // Test that `dyn ?Sized` (i.e., a trait object with only a maybe buond) is not allowed.
2
3 type _0 = dyn ?Sized;
4 //~^ ERROR at least one trait is required for an object type [E0224]
5 //~| ERROR ?Trait` is not permitted in trait object types
6
7 fn main() {}