Intersection patterns 'p1 @ p2' are not supported.

This commit is contained in:
Mazdak Farrokhzad 2019-07-08 02:06:49 +02:00
parent 91c8b53f45
commit e725ea2215
2 changed files with 0 additions and 15 deletions

View File

@ -1,6 +0,0 @@
#![feature(slice_patterns)]
fn main() {
let x: &[u32] = &[];
let &[[ref _a, ref _b @ ..] @ ..] = x; //~ ERROR refutable pattern
}

View File

@ -1,9 +0,0 @@
error[E0005]: refutable pattern in local binding: `&[]` not covered
--> $DIR/issue-26158.rs:5:9
|
LL | let &[[ref _a, ref _b..]..] = x;
| ^^^^^^^^^^^^^^^^^^^^^^^ pattern `&[]` not covered
error: aborting due to previous error
For more information about this error, try `rustc --explain E0005`.