提交 e5abe15f 编写于 作者: A Alex Crichton

Test fixes from the rollup

上级 25e08fb4
......@@ -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)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册