Intersection patterns 'p1 @ p2' are not supported.
This commit is contained in:
parent
91c8b53f45
commit
e725ea2215
2 changed files with 0 additions and 15 deletions
|
|
@ -1,6 +0,0 @@
|
|||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let x: &[u32] = &[];
|
||||
let &[[ref _a, ref _b @ ..] @ ..] = x; //~ ERROR refutable pattern
|
||||
}
|
||||
|
|
@ -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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue