]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/match-vec-mismatch.rs
Stabilize match_default_bindings
[rust.git] / src / test / compile-fail / match-vec-mismatch.rs
index fed68da0068898cef0eb6e55816396a6ed54262a..d737aa0029bf83ae324964e11c466397eb75aa8e 100644 (file)
@@ -19,7 +19,7 @@ fn main() {
 
     // Note that this one works with default binding modes.
     match &[0, 1, 2] {
-        [..] => {} //~ ERROR non-reference pattern used to match a reference
+        [..] => {}
     };
 
     match &[0, 1, 2] {
@@ -43,6 +43,6 @@ fn main() {
 fn another_fn_to_avoid_suppression() {
     match Default::default()
     {
-        [] => {}  //~ ERROR the type of this value
+        [] => {}  //~ ERROR type annotations needed
     };
 }