summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-27815.rs
blob: 9e53014f455222df9b7c25d481bafc613a190806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
mod A {}

fn main() {
    let u = A { x: 1 }; //~ ERROR expected struct, variant or union type, found module `A`
    let v = u32 { x: 1 }; //~ ERROR expected struct, variant or union type, found builtin type `u32`
    match () {
        A { x: 1 } => {}
        //~^ ERROR expected struct, variant or union type, found module `A`
        u32 { x: 1 } => {}
        //~^ ERROR expected struct, variant or union type, found builtin type `u32`
    }
}