Test fixes from the rollup
This commit is contained in:
parent
25e08fb4fe
commit
e5abe15ff5
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-pretty
|
||||
// ignore-android
|
||||
|
||||
#![feature(quote)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user