We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 625fc29 commit 4c672e0Copy full SHA for 4c672e0
src/test/compile-fail/no-patterns-in-args.rs
@@ -10,10 +10,13 @@
10
11
extern {
12
fn f1(mut arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
13
- //~^ NOTE this is a recent error
+ //~^ NOTE pattern not allowed in foreign function
14
+ //~| NOTE this is a recent error
15
fn f2(&arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
16
17
fn f3(arg @ _: u8); //~ ERROR patterns aren't allowed in foreign function declarations
18
19
20
fn g1(arg: u8); // OK
21
fn g2(_: u8); // OK
22
// fn g3(u8); // Not yet
0 commit comments