]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/usefulness/stable-gated-patterns.rs
Add struct to stability ui tests in usefulness
[rust.git] / src / test / ui / pattern / usefulness / stable-gated-patterns.rs
index 2e023a3be4a5ea5f25529a3947d43e0bb611e752..ff1c472e24fd6292a06845e9c7bae9c3f4ecc388 100644 (file)
@@ -2,17 +2,17 @@
 
 extern crate unstable;
 
-use unstable::Foo;
+use unstable::UnstableEnum;
 
 fn main() {
-    match Foo::Stable {
-        Foo::Stable => {}
+    match UnstableEnum::Stable {
+        UnstableEnum::Stable => {}
     }
     //~^^^ non-exhaustive patterns: `Stable2` and `_` not covered
 
-    match Foo::Stable {
-        Foo::Stable => {}
-        Foo::Stable2 => {}
+    match UnstableEnum::Stable {
+        UnstableEnum::Stable => {}
+        UnstableEnum::Stable2 => {}
     }
     //~^^^^ non-exhaustive patterns: `_` not covered
 }