]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/as-struct-constructor.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / traits / as-struct-constructor.rs
1 trait TraitNotAStruct {}
2
3 fn main() {
4     TraitNotAStruct{ value: 0 };
5     //~^ ERROR expected struct, variant or union type, found trait `TraitNotAStruct`
6 }