rust/tests/ui/issues/issue-17001.rs
2023-01-11 09:32:08 +00:00

5 lines
122 B
Rust

mod foo {}
fn main() {
let p = foo { x: () }; //~ ERROR expected struct, variant or union type, found module `foo`
}