mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
10 lines
294 B
Rust
10 lines
294 B
Rust
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
|
|
}
|