rust/tests/ui/traits/bad-sized.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
165 B
Rust
Raw Normal View History

2015-04-18 05:12:20 +00:00
trait Trait {}
pub fn main() {
2019-05-28 18:46:13 +00:00
let x: Vec<dyn Trait + Sized> = Vec::new();
//~^ ERROR only auto traits can be used as additional traits in a trait object
}