]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17001.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-17001.rs
1 mod foo {}
2
3 fn main() {
4     let p = foo { x: () }; //~ ERROR expected struct, variant or union type, found module `foo`
5 }