Files
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-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
}