// option. This file may not be copied, modified, or distributed
// except according to those terms.
-enum Foo { //~ NOTE previous definition
+enum Foo { //~ NOTE previous definition of `Foo` here
X
}
mod Foo { //~ ERROR a type named `Foo` has already been defined
+ //~| NOTE already defined
pub static X: isize = 42;
fn f() { f() } // Check that this does not result in a resolution error
}
#[allow(dead_code)]
struct Foo;
//~^ ERROR a module named `Foo` has already been defined in this module
+//~| NOTE already defined
#[allow(non_snake_case)]
mod Bar { }
#[allow(dead_code)]
struct Bar(i32);
//~^ ERROR a module named `Bar` has already been defined
+//~| NOTE already defined
#[allow(dead_code)]
#[allow(non_snake_case)]
mod Baz { }
//~^ ERROR a type named `Baz` has already been defined
+//~| NOTE already defined
#[allow(dead_code)]
#[allow(non_snake_case)]
mod Qux { }
//~^ ERROR a type named `Qux` has already been defined
+//~| NOTE already defined
#[allow(dead_code)]
#[allow(non_snake_case)]
mod Quux { }
//~^ ERROR a type named `Quux` has already been defined
+//~| NOTE already defined
#[allow(dead_code)]
#[allow(non_snake_case)]
mod Corge { }
//~^ ERROR a type named `Corge` has already been defined
+//~| NOTE already defined
fn main() { }