fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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