Skip to content

Commit d28b7af

Browse files
committed
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.
1 parent 407536e commit d28b7af

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/test/ui/async-await/issue-60674.rs

+6
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ extern crate issue_60674;
1111
#[issue_60674::attr]
1212
async fn f(mut x: u8) {}
1313

14+
#[issue_60674::attr]
15+
async fn g((mut x, y, mut z): (u8, u8, u8)) {}
16+
17+
#[issue_60674::attr]
18+
async fn g(mut x: u8, (a, mut b, c): (u8, u8, u8), y: u8) {}
19+
1420
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
async fn f(mut x: u8) { }
2+
async fn g((mut x, y, mut z): (u8, u8, u8)) { }
3+
async fn g(mut x: u8, (a, mut b, c): (u8, u8, u8), y: u8) { }

0 commit comments

Comments
 (0)