1 error[E0642]: patterns aren't allowed in methods without bodies
4 LL | fn foo((x, y): (i32, i32));
6 help: give this argument a name or use an underscore to ignore it
8 LL | fn foo(_: (i32, i32));
11 error[E0642]: patterns aren't allowed in methods without bodies
12 --> $DIR/E0642.rs:7:12
14 LL | fn bar((x, y): (i32, i32)) {}
16 help: give this argument a name or use an underscore to ignore it
18 LL | fn bar(_: (i32, i32)) {}
21 error[E0642]: patterns aren't allowed in methods without bodies
22 --> $DIR/E0642.rs:9:15
24 LL | fn method(S { .. }: S) {}
26 help: give this argument a name or use an underscore to ignore it
28 LL | fn method(_: S) {}
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0642`.