Update syntax in existing tests
This commit is contained in:
parent
87738fe834
commit
fc48541ab1
100 changed files with 343 additions and 328 deletions
|
|
@ -1,8 +1,8 @@
|
|||
error: expected one of `async`, `const`, `existential`, `extern`, `fn`, `type`, or `unsafe`, found `pub`
|
||||
error: expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`, found `pub`
|
||||
--> $DIR/default.rs:22:13
|
||||
|
|
||||
LL | default pub fn foo<T: Default>() -> T { T::default() }
|
||||
| ^^^ expected one of 7 possible tokens here
|
||||
| ^^^ expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe` here
|
||||
|
||||
error[E0449]: unnecessary visibility qualifier
|
||||
--> $DIR/default.rs:16:5
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
// ignore-tidy-linelength
|
||||
|
||||
struct Foo;
|
||||
|
||||
impl Foo {
|
||||
fn foo() {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, or
|
||||
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
||||
--> $DIR/issue-20711-2.rs:9:1
|
||||
error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
||||
--> $DIR/issue-20711-2.rs:7:1
|
||||
|
|
||||
LL | #[stable(feature = "rust1", since = "1.0.0")]
|
||||
| - expected one of 10 possible tokens here
|
||||
| - expected one of 9 possible tokens here
|
||||
LL | }
|
||||
| ^ unexpected token
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
// ignore-tidy-linelength
|
||||
|
||||
struct Foo;
|
||||
|
||||
impl Foo {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, or
|
||||
} //~ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
||||
--> $DIR/issue-20711.rs:7:1
|
||||
error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, or `unsafe`, found `}`
|
||||
--> $DIR/issue-20711.rs:5:1
|
||||
|
|
||||
LL | #[stable(feature = "rust1", since = "1.0.0")]
|
||||
| - expected one of 10 possible tokens here
|
||||
| - expected one of 9 possible tokens here
|
||||
LL | }
|
||||
| ^ unexpected token
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: expected one of `(`, `async`, `const`, `default`, `existential`, `extern`, `fn`, `type`, or `unsafe`, found `}`
|
||||
error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `type`, or `unsafe`, found `}`
|
||||
--> $DIR/issue-41155.rs:5:1
|
||||
|
|
||||
LL | pub
|
||||
| - expected one of 9 possible tokens here
|
||||
| - expected one of 8 possible tokens here
|
||||
LL | }
|
||||
| ^ unexpected token
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
// ignore-tidy-linelength
|
||||
|
||||
struct S;
|
||||
|
||||
impl S {
|
||||
static fn f() {}
|
||||
//~^ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`,
|
||||
}
|
||||
//~^^ ERROR expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`,
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: expected one of `async`, `const`, `crate`, `default`, `existential`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `static`
|
||||
--> $DIR/removed-syntax-static-fn.rs:6:5
|
||||
error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found `static`
|
||||
--> $DIR/removed-syntax-static-fn.rs:4:5
|
||||
|
|
||||
LL | impl S {
|
||||
| - expected one of 11 possible tokens here
|
||||
| - expected one of 10 possible tokens here
|
||||
LL | static fn f() {}
|
||||
| ^^^^^^ unexpected token
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue