summaryrefslogtreecommitdiffstats
path: root/src/test/ui/variants/variant-namespacing.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/variants/variant-namespacing.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/variants/variant-namespacing.rs')
-rw-r--r--src/test/ui/variants/variant-namespacing.rs33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/ui/variants/variant-namespacing.rs b/src/test/ui/variants/variant-namespacing.rs
deleted file mode 100644
index 975e471fe..000000000
--- a/src/test/ui/variants/variant-namespacing.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-// aux-build:variant-namespacing.rs
-
-pub enum E {
- Struct { a: u8 },
- Tuple(u8),
- Unit,
-}
-
-type Struct = u8;
-type Tuple = u8;
-type Unit = u8;
-type XStruct = u8;
-type XTuple = u8;
-type XUnit = u8;
-
-const Struct: u8 = 0;
-const Tuple: u8 = 0;
-const Unit: u8 = 0;
-const XStruct: u8 = 0;
-const XTuple: u8 = 0;
-const XUnit: u8 = 0;
-
-extern crate variant_namespacing;
-pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
-//~^ ERROR the name `XStruct` is defined multiple times
-//~| ERROR the name `XTuple` is defined multiple times
-//~| ERROR the name `XUnit` is defined multiple times
-pub use E::{Struct, Tuple, Unit};
-//~^ ERROR the name `Struct` is defined multiple times
-//~| ERROR the name `Tuple` is defined multiple times
-//~| ERROR the name `Unit` is defined multiple times
-
-fn main() {}