]> git.proxmox.com Git - rustc.git/blob - src/test/ui/bad/bad-sized.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / bad / bad-sized.rs
1 trait Trait {}
2
3 pub fn main() {
4 let x: Vec<dyn Trait + Sized> = Vec::new();
5 //~^ ERROR only auto traits can be used as additional traits in a trait object
6 //~| ERROR the size for values of type
7 //~| ERROR the size for values of type
8 //~| ERROR the size for values of type
9 }