2020-04-19 12:17:31 -05:00
|
|
|
// Regression test for #71297
|
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
async fn a((x | s): String) {}
|
|
|
|
//~^ ERROR variable `x` is not bound in all patterns
|
|
|
|
//~| ERROR variable `s` is not bound in all patterns
|
|
|
|
|
|
|
|
async fn b() {
|
2021-02-12 18:04:37 -06:00
|
|
|
let (x | s) = String::new();
|
2020-04-19 12:17:31 -05:00
|
|
|
//~^ ERROR variable `x` is not bound in all patterns
|
|
|
|
//~| ERROR variable `s` is not bound in all patterns
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|