1
Fork 0
rust/src/test/ui/bad/bad-sized.rs

9 lines
251 B
Rust
Raw Normal View History

2015-04-17 22:12:20 -07:00
trait Trait {}
pub fn main() {
2019-05-28 14:46:13 -04:00
let x: Vec<dyn Trait + Sized> = Vec::new();
//~^ ERROR only auto traits can be used as additional traits in a trait object
2018-07-10 23:10:13 +02:00
//~| ERROR the size for values of type
//~| ERROR the size for values of type
}