rust/src/test/ui/issues/issue-17001.rs
2018-12-25 21:08:33 -07:00

6 lines
122 B
Rust

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