1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // Also works as a test for #14564
13 #[allow(non_snake_case)]
15 //~^ NOTE first definition of type or module `Foo`
19 //~^ ERROR duplicate definition of type or module `Foo`
22 #[allow(non_snake_case)]
24 //~^ NOTE first definition of type or module `Bar`
28 //~^ ERROR duplicate definition of type or module `Bar`
33 //~^ NOTE first definition of type or module
35 #[allow(non_snake_case)]
37 //~^ ERROR duplicate definition of type or module `Baz`
41 struct Qux { x: bool }
42 //~^ NOTE first definition of type or module
44 #[allow(non_snake_case)]
46 //~^ ERROR duplicate definition of type or module `Qux`
51 //~^ NOTE first definition of type or module
53 #[allow(non_snake_case)]
55 //~^ ERROR duplicate definition of type or module `Quux`
61 #[allow(non_snake_case)]
63 //~^ ERROR duplicate definition of type or module `Corge`