]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27815.rs
Add 'src/tools/clippy/' from commit 'd2708873ef711ec8ab45df1e984ecf24a96cd369'
[rust.git] / src / test / ui / issues / issue-27815.rs
1 mod A {}
2
3 fn main() {
4     let u = A { x: 1 }; //~ ERROR expected struct, variant or union type, found module `A`
5     let v = u32 { x: 1 }; //~ ERROR expected struct, variant or union type, found builtin type `u32`
6     match () {
7         A { x: 1 } => {}
8         //~^ ERROR expected struct, variant or union type, found module `A`
9         u32 { x: 1 } => {}
10         //~^ ERROR expected struct, variant or union type, found builtin type `u32`
11     }
12 }