]> 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 998c11979953cfde9c50a8107abf2be55e60e2bc..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] {