1 error[E0130]: patterns aren't allowed in foreign function declarations
2 --> $DIR/issue-10877.rs:5:12
5 | ^ pattern not allowed in foreign function
7 error[E0130]: patterns aren't allowed in foreign function declarations
8 --> $DIR/issue-10877.rs:7:12
10 LL | fn bar((): isize);
11 | ^^ pattern not allowed in foreign function
13 error[E0130]: patterns aren't allowed in foreign function declarations
14 --> $DIR/issue-10877.rs:9:12
16 LL | fn baz(Foo { x }: isize);
17 | ^^^^^^^^^ pattern not allowed in foreign function
19 error[E0130]: patterns aren't allowed in foreign function declarations
20 --> $DIR/issue-10877.rs:11:12
22 LL | fn qux((x, y): ());
23 | ^^^^^^ pattern not allowed in foreign function
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0130`.