2019-05-09 12:13:21 -05:00
|
|
|
// aux-build:issue-60674.rs
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-05-09 12:13:21 -05:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
// This is a regression test that ensures that `mut` patterns are not lost when provided as input
|
|
|
|
// to a proc macro.
|
|
|
|
|
|
|
|
extern crate issue_60674;
|
|
|
|
|
|
|
|
#[issue_60674::attr]
|
|
|
|
async fn f(mut x: u8) {}
|
|
|
|
|
2019-05-10 02:55:54 -05:00
|
|
|
#[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) {}
|
|
|
|
|
2019-05-09 12:13:21 -05:00
|
|
|
fn main() {}
|