]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/wf-object/only-maybe-bound.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / wf-object / only-maybe-bound.rs
CommitLineData
dc9dc135
XL
1// Test that `dyn ?Sized` (i.e., a trait object with only a maybe buond) is not allowed.
2
3type _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
7fn main() {}