From 88baca7486607bb9799ab338afdf088b4cf9e2bd Mon Sep 17 00:00:00 2001 From: P1start Date: Sun, 5 Oct 2014 12:08:37 +1300 Subject: Rename vector patterns to array patterns Closes #17765. --- src/test/compile-fail/issue-13482.rs | 2 +- src/test/compile-fail/match-vec-mismatch-2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/compile-fail') diff --git a/src/test/compile-fail/issue-13482.rs b/src/test/compile-fail/issue-13482.rs index e5d87395286..2c7b56f9dc7 100644 --- a/src/test/compile-fail/issue-13482.rs +++ b/src/test/compile-fail/issue-13482.rs @@ -12,7 +12,7 @@ fn main() { let x = [1,2]; let y = match x { [] => None, -//~^ ERROR expected `[, ..2]`, found a fixed vector pattern of size 0 +//~^ ERROR expected `[, ..2]`, found a fixed array pattern of size 0 [a,_] => Some(a) }; } diff --git a/src/test/compile-fail/match-vec-mismatch-2.rs b/src/test/compile-fail/match-vec-mismatch-2.rs index fee49ad8fdb..e095c7c2408 100644 --- a/src/test/compile-fail/match-vec-mismatch-2.rs +++ b/src/test/compile-fail/match-vec-mismatch-2.rs @@ -10,6 +10,6 @@ fn main() { match () { - [()] => { } //~ ERROR mismatched types: expected `()`, found a vector pattern + [()] => { } //~ ERROR mismatched types: expected `()`, found an array pattern } } -- cgit 1.4.1-3-g733a5