Skip to content

Commit 4c672e0

Browse files
committed
Fixed no-pattern-in-args test for new E0130 format
1 parent 625fc29 commit 4c672e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/compile-fail/no-patterns-in-args.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010

1111
extern {
1212
fn f1(mut arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
13-
//~^ NOTE this is a recent error
13+
//~^ NOTE pattern not allowed in foreign function
14+
//~| NOTE this is a recent error
1415
fn f2(&arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
16+
//~^ NOTE pattern not allowed in foreign function
1517
fn f3(arg @ _: u8); //~ ERROR patterns aren't allowed in foreign function declarations
16-
//~^ NOTE this is a recent error
18+
//~^ NOTE pattern not allowed in foreign function
19+
//~| NOTE this is a recent error
1720
fn g1(arg: u8); // OK
1821
fn g2(_: u8); // OK
1922
// fn g3(u8); // Not yet

0 commit comments

Comments
 (0)