2017-12-10 23:29:24 +03:00
|
|
|
enum Foo {
|
2016-02-13 23:39:51 +00:00
|
|
|
X
|
2014-07-04 17:59:55 -07:00
|
|
|
}
|
|
|
|
|
2017-05-17 20:29:58 -07:00
|
|
|
mod Foo { //~ ERROR the name `Foo` is defined multiple times
|
2016-02-13 23:39:51 +00:00
|
|
|
pub static X: isize = 42;
|
|
|
|
fn f() { f() } // Check that this does not result in a resolution error
|
2024-02-01 22:45:00 +00:00
|
|
|
//~^ WARN cannot return without recursing
|
2014-07-04 17:59:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|