]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/const.rs
Stabilize match_default_bindings
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / const.rs
index 31923343b6aa7f116ed25ea71afb839db6d07578..f80e47507ff04483cde056c3f18ec020d38d60ea 100644 (file)
@@ -10,8 +10,6 @@
 
 // FIXME(tschottdorf): this test should pass.
 
-#![feature(match_default_bindings)]
-
 #[derive(PartialEq, Eq)]
 struct Foo {
     bar: i32,
@@ -23,7 +21,7 @@ fn main() {
     let f = Foo{bar:6};
 
     match &f {
-        FOO => {},
+        FOO => {}, //~ ERROR mismatched types
         _ => panic!(),
     }
 }