Skip to content

Commit

Permalink
Truncate errors to make tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj committed Jun 22, 2018
1 parent fb1e13b commit e4c89d7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 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 `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or

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 `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or

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 `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`
//~^^ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`,
2 changes: 1 addition & 1 deletion src/test/parse-fail/trait-pub-assoc-const.rs
Expand Up @@ -10,7 +10,7 @@

trait Foo {
pub const Foo: u32;
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
}

fn main() {}
2 changes: 1 addition & 1 deletion src/test/parse-fail/trait-pub-assoc-ty.rs
Expand Up @@ -10,7 +10,7 @@

trait Foo {
pub type Foo;
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
}

fn main() {}
2 changes: 1 addition & 1 deletion src/test/parse-fail/trait-pub-method.rs
Expand Up @@ -10,7 +10,7 @@

trait Foo {
pub fn foo();
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
}

fn main() {}

0 comments on commit e4c89d7

Please sign in to comment.