summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/bad-sized.rs
blob: a15219679788dbe5ac04bb34e9ac70e64bb42b3a (plain)
1
2
3
4
5
6
7
8
9
trait Trait {}

pub fn main() {
    let x: Vec<dyn Trait + Sized> = Vec::new();
    //~^ ERROR only auto traits can be used as additional traits in a trait object
    //~| ERROR the size for values of type
    //~| ERROR the size for values of type
    //~| ERROR the size for values of type
}