mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
Fixed no-pattern-in-args test for new E0130 format
This commit is contained in:
parent
f656a92cbb
commit
e2cc1571ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user