Test fixes from the rollup

This commit is contained in:
Alex Crichton 2014-09-09 08:08:30 -07:00
parent 25e08fb4fe
commit e5abe15ff5
2 changed files with 4 additions and 3 deletions

View File

@ -11,9 +11,9 @@
fn main() {
let x = [ 1i, 2, 3, 4, 5 ];
match x {
[ ..xs, 4, 5 ] => {} //~ ERROR multiple-element slice matches
[ 1, ..xs, 5 ] => {} //~ ERROR multiple-element slice matches
[ 1, 2, ..xs ] => {} // OK without feature gate
[ xs.., 4, 5 ] => {} //~ ERROR multiple-element slice matches
[ 1, xs.., 5 ] => {} //~ ERROR multiple-element slice matches
[ 1, 2, xs.. ] => {} // OK without feature gate
}
}

View File

@ -9,6 +9,7 @@
// except according to those terms.
// ignore-pretty
// ignore-android
#![feature(quote)]