1
Fork 0

Rollup merge of #60692 - davidtwco:pr-60676-followup, r=Centril

Extend #60676 test for nested mut patterns.

At request of @centril, this commit extends the existing test added by #60676 to include nested `mut` patterns.

cc @Centril
This commit is contained in:
Mazdak Farrokhzad 2019-05-10 20:31:10 +02:00 committed by GitHub
commit ec6afb1ff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -11,4 +11,10 @@ extern crate issue_60674;
#[issue_60674::attr]
async fn f(mut x: u8) {}
#[issue_60674::attr]
async fn g((mut x, y, mut z): (u8, u8, u8)) {}
#[issue_60674::attr]
async fn g(mut x: u8, (a, mut b, c): (u8, u8, u8), y: u8) {}
fn main() {}

View file

@ -1 +1,3 @@
async fn f(mut x: u8) { }
async fn g((mut x, y, mut z): (u8, u8, u8)) { }
async fn g(mut x: u8, (a, mut b, c): (u8, u8, u8), y: u8) { }