blob: d1cb73aafa0c051699258b02514512f06fb671ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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() {
let (x | s) = String::new();
//~^ ERROR variable `x` is not bound in all patterns
//~| ERROR variable `s` is not bound in all patterns
}
fn main() {}
|