Skip to content

Commit

Permalink
Parse fail test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aturon committed Mar 14, 2016
1 parent e5753b4 commit c4f78ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/parse-fail/issue-20711-2.rs
Expand Up @@ -16,6 +16,6 @@ impl Foo {
fn foo() {}

#[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() {}
2 changes: 1 addition & 1 deletion src/test/parse-fail/issue-20711.rs
Expand Up @@ -14,6 +14,6 @@ struct Foo;

impl Foo {
#[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() {}
2 changes: 1 addition & 1 deletion src/test/parse-fail/removed-syntax-static-fn.rs
Expand Up @@ -15,4 +15,4 @@ struct S;
impl S {
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 `}`

0 comments on commit c4f78ad

Please sign in to comment.