rust/src/test/ui/bad/bad-sized.rs
2018-12-25 21:08:33 -07:00

9 lines
247 B
Rust

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
}