]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bad-sized.rs
Rollup merge of #87354 - Wind-River:2021_master, r=kennytm
[rust.git] / src / test / ui / traits / 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 }