]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27815.rs
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[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 }