blob: bdc7b2bf5841ff0cc4e55ce82749a4354a8a5394 [file] [log] [blame] [edit]
//! regression test for https://github.com/rust-lang/rust/issues/17001, https://github.com/rust-lang/rust/issues/21449, https://github.com/rust-lang/rust/issues/23189
mod foo {}
fn main() {
let p = foo { x: () }; //~ ERROR expected struct, variant or union type, found module `foo`
}