]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-17800.rs
Imported Upstream version 1.0.0-alpha.2
[rustc.git] / src / test / compile-fail / issue-17800.rs
index 89611e4f3fe78b79e21e0b950de674b15ddab352..5196b6ea877f887d553e86b306ddba680ed70d3f 100644 (file)
@@ -14,8 +14,8 @@ enum MyOption<T> {
 }
 
 fn main() {
-    match MyOption::MySome(42is) {
-        MyOption::MySome { x: 42is } => (),
+    match MyOption::MySome(42) {
+        MyOption::MySome { x: 42 } => (),
         //~^ ERROR `MyOption::MySome` does not name a struct or a struct variant
         _ => (),
     }