]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-and-module-in-same-scope.rs
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[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() {}