]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/as-struct-constructor.rs
Rollup merge of #82234 - GuillaumeGomez:remove-query-param-on-esc, r=Nemo157
[rust.git] / src / test / 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 }