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