mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
13 lines
449 B
Rust
13 lines
449 B
Rust
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`
|
|
}
|
|
}
|