summary refs log tree commit diff
path: root/src/test/ui/bad/bad-sized.rs
blob: 0da4e456f088daaac736025b0776ad5e1ed3a7b0 (plain)
1
2
3
4
5
6
7
8
trait Trait {}

pub fn main() {
    let x: Vec<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
}