Parse fail test fixes
This commit is contained in:
parent
e5753b4605
commit
c4f78ad7bf
@ -16,6 +16,6 @@ impl Foo {
|
|||||||
fn foo() {}
|
fn foo() {}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
} //~ ERROR expected one of `const`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
} //~ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -14,6 +14,6 @@ struct Foo;
|
|||||||
|
|
||||||
impl Foo {
|
impl Foo {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
} //~ ERROR expected one of `const`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
} //~ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -15,4 +15,4 @@ struct S;
|
|||||||
impl S {
|
impl S {
|
||||||
static fn f() {}
|
static fn f() {}
|
||||||
}
|
}
|
||||||
//~^^ ERROR expected one of `const`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `static`
|
//~^^ ERROR expected one of `const`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user