X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fcompile-fail%2Fmatch-vec-mismatch.rs;h=d737aa0029bf83ae324964e11c466397eb75aa8e;hb=3c65f536206a4df9900f5f6666f3674817d3638b;hp=998c11979953cfde9c50a8107abf2be55e60e2bc;hpb=e58df0d8c5221fa5743587740eb50e4db42c3d1e;p=rust.git diff --git a/src/test/compile-fail/match-vec-mismatch.rs b/src/test/compile-fail/match-vec-mismatch.rs index 998c1197995..d737aa0029b 100644 --- a/src/test/compile-fail/match-vec-mismatch.rs +++ b/src/test/compile-fail/match-vec-mismatch.rs @@ -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] {