]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | struct Foo { x: isize } |
2 | extern { | |
3 | fn foo(1: ()); | |
4 | //~^ ERROR: patterns aren't allowed in foreign function declarations | |
5 | fn bar((): isize); | |
6 | //~^ ERROR: patterns aren't allowed in foreign function declarations | |
7 | fn baz(Foo { x }: isize); | |
8 | //~^ ERROR: patterns aren't allowed in foreign function declarations | |
9 | fn qux((x,y): ()); | |
10 | //~^ ERROR: patterns aren't allowed in foreign function declarations | |
11 | fn this_is_actually_ok(a: usize); | |
12 | fn and_so_is_this(_: usize); | |
13 | } | |
14 | fn main() {} |