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