Skip to content

Commit

Permalink
Fixed no-pattern-in-args test for new E0130 format
Browse files Browse the repository at this point in the history
  • Loading branch information
trixnz committed Aug 5, 2016
1 parent 625fc29 commit 4c672e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/compile-fail/no-patterns-in-args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@

extern {
fn f1(mut arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
//~^ NOTE this is a recent error
//~^ NOTE pattern not allowed in foreign function
//~| NOTE this is a recent error
fn f2(&arg: u8); //~ ERROR patterns aren't allowed in foreign function declarations
//~^ NOTE pattern not allowed in foreign function
fn f3(arg @ _: u8); //~ ERROR patterns aren't allowed in foreign function declarations
//~^ NOTE this is a recent error
//~^ NOTE pattern not allowed in foreign function
//~| NOTE this is a recent error
fn g1(arg: u8); // OK
fn g2(_: u8); // OK
// fn g3(u8); // Not yet
Expand Down

0 comments on commit 4c672e0

Please sign in to comment.