summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/as-struct-constructor.rs
blob: 13ebf9d8d6680696af42a528247e67e321153870 (plain)
1
2
3
4
5
6
trait TraitNotAStruct {}

fn main() {
    TraitNotAStruct{ value: 0 };
    //~^ ERROR expected struct, variant or union type, found trait `TraitNotAStruct`
}