summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/control-flow/single_variant_match_ice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/control-flow/single_variant_match_ice.rs')
-rw-r--r--src/test/ui/consts/control-flow/single_variant_match_ice.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/consts/control-flow/single_variant_match_ice.rs b/src/test/ui/consts/control-flow/single_variant_match_ice.rs
deleted file mode 100644
index b59be00ff..000000000
--- a/src/test/ui/consts/control-flow/single_variant_match_ice.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-// check-pass
-
-enum Foo {
- Prob,
-}
-
-const FOO: u32 = match Foo::Prob {
- Foo::Prob => 42,
-};
-
-const BAR: u32 = match Foo::Prob {
- x => 42,
-};
-
-impl Foo {
- pub const fn as_val(&self) -> u8 {
- use self::Foo::*;
-
- match *self {
- Prob => 0x1,
- }
- }
-}
-
-fn main() {}