Skip to content

Commit e4c89d7

Browse files
committed
Truncate errors to make tidy happy
1 parent fb1e13b commit e4c89d7

File tree

6 files changed

+6
-6
lines changed

6 files changed

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

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 `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
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 `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
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 `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
13+
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found
1414
}
1515

1616
fn main() {}

0 commit comments

Comments
 (0)