Skip to content

Commit

Permalink
Rollup merge of rust-lang#60692 - davidtwco:pr-60676-followup, r=Centril
Browse files Browse the repository at this point in the history
Extend rust-lang#60676 test for nested mut patterns.

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

cc @Centril
  • Loading branch information
Centril authored May 10, 2019
2 parents bc8c782 + d28b7af commit ec6afb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/async-await/issue-60674.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
2 changes: 2 additions & 0 deletions src/test/ui/async-await/issue-60674.stdout
Original file line number Diff line number Diff line change
@@ -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) { }

0 comments on commit ec6afb1

Please sign in to comment.