]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bad-sized.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[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 }