]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-and-module-in-same-scope.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / enum / enum-and-module-in-same-scope.rs
1 enum Foo {
2     X
3 }
4
5 mod Foo { //~ ERROR the name `Foo` is defined multiple times
6     pub static X: isize = 42;
7     fn f() { f() } // Check that this does not result in a resolution error
8 }
9
10 fn main() {}