Skip to content

Commit fb1e13b

Browse files
committed
Fix parse-fail tests that now mention async
1 parent 0db0622 commit fb1e13b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/test/parse-fail/issue-20711-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ impl Foo {
1616
fn foo() {}
1717

1818
#[stable(feature = "rust1", since = "1.0.0")]
19-
} //~ ERROR expected one of `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
19+
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
2020

2121
fn main() {}

src/test/parse-fail/issue-20711.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ struct Foo;
1414

1515
impl Foo {
1616
#[stable(feature = "rust1", since = "1.0.0")]
17-
} //~ ERROR expected one of `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
17+
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
1818

1919
fn main() {}

src/test/parse-fail/removed-syntax-static-fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ struct S;
1515
impl S {
1616
static fn f() {}
1717
}
18-
//~^^ ERROR expected one of `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`
18+
//~^^ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`

src/test/parse-fail/trait-non-item-macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
macro_rules! bah {
1212
($a:expr) => ($a)
13-
//~^ ERROR expected one of `const`, `extern`, `fn`, `type`, or `unsafe`, found `2`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`, found `2`
1414
}
1515

1616
trait bar {

src/test/parse-fail/trait-pub-assoc-const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
trait Foo {
1212
pub const Foo: u32;
13-
//~^ ERROR expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
1414
}
1515

1616
fn main() {}

src/test/parse-fail/trait-pub-assoc-ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
trait Foo {
1212
pub type Foo;
13-
//~^ ERROR expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
1414
}
1515

1616
fn main() {}

src/test/parse-fail/trait-pub-method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
trait Foo {
1212
pub fn foo();
13-
//~^ ERROR expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
1414
}
1515

1616
fn main() {}

0 commit comments

Comments
 (0)