Skip to content

Commit c4f78ad

Browse files
committed
Parse fail test fixes
1 parent e5753b4 commit c4f78ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

+1-1
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`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
19+
} //~ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
2020

2121
fn main() {}

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

+1-1
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`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
17+
} //~ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
1818

1919
fn main() {}

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

+1-1
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`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `static`
18+
//~^^ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`

0 commit comments

Comments
 (0)