]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/as-struct-constructor.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[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 }