Extend existing test for nested mut patterns.
At request of `@centril`, this commit extends the existing test added by #60676 to include nested `mut` patterns.
This commit is contained in:
parent
407536e38d
commit
d28b7afd17
@ -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() {}
|
||||
|
@ -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) { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user