summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-nullary-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-nullary-enum.rs')
-rw-r--r--src/test/ui/consts/const-nullary-enum.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/consts/const-nullary-enum.rs b/src/test/ui/consts/const-nullary-enum.rs
deleted file mode 100644
index b6574dce6..000000000
--- a/src/test/ui/consts/const-nullary-enum.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// run-pass
-#![allow(dead_code)]
-
-enum Foo {
- Bar,
- Baz,
- Boo,
-}
-
-static X: Foo = Foo::Bar;
-
-pub fn main() {
- match X {
- Foo::Bar => {}
- Foo::Baz | Foo::Boo => panic!()
- }
- match Y {
- Foo::Baz => {}
- Foo::Bar | Foo::Boo => panic!()
- }
-}
-
-static Y: Foo = Foo::Baz;