fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0642]: patterns aren't allowed in methods without bodies 2 --> $DIR/E0642.rs:5:12 3 | 4LL | fn foo((x, y): (i32, i32)); 5 | ^^^^^^ 6 | 7help: give this argument a name or use an underscore to ignore it 8 | 9LL | fn foo(_: (i32, i32)); 10 | ^ 11 12error[E0642]: patterns aren't allowed in methods without bodies 13 --> $DIR/E0642.rs:7:12 14 | 15LL | fn bar((x, y): (i32, i32)) {} 16 | ^^^^^^ 17 | 18help: give this argument a name or use an underscore to ignore it 19 | 20LL | fn bar(_: (i32, i32)) {} 21 | ^ 22 23error[E0642]: patterns aren't allowed in methods without bodies 24 --> $DIR/E0642.rs:9:15 25 | 26LL | fn method(S { .. }: S) {} 27 | ^^^^^^^^ 28 | 29help: give this argument a name or use an underscore to ignore it 30 | 31LL | fn method(_: S) {} 32 | ^ 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0642`.