]>
git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/variant-namespacing.rs
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 // aux-build:variant-namespacing.rs
29 const XStruct
: u8 = 0;
33 extern crate variant_namespacing
;
34 pub use variant_namespacing
::XE
::*;
35 //~^ ERROR `XStruct` has already been defined
36 //~| ERROR `XStruct` has already been defined
37 //~| ERROR `XTuple` has already been defined
38 //~| ERROR `XTuple` has already been defined
39 //~| ERROR `XUnit` has already been defined
40 //~| ERROR `XUnit` has already been defined
42 //~^ ERROR `Struct` has already been defined
43 //~| ERROR `Struct` has already been defined
44 //~| ERROR `Tuple` has already been defined
45 //~| ERROR `Tuple` has already been defined
46 //~| ERROR `Unit` has already been defined
47 //~| ERROR `Unit` has already been defined