Skip to content

Commit 265cd14

Browse files
Update Tests
1 parent 94885bc commit 265cd14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+409
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
trait Animal {
2+
Type Result = u8;
3+
//~^ ERROR expected one of
4+
}
5+
6+
fn main() {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error: expected one of `!` or `::`, found `Result`
2+
--> $DIR/assoc-type.rs:2:10
3+
|
4+
LL | trait Animal {
5+
| - while parsing this item list starting here
6+
LL | Type Result = u8;
7+
| ^^^^^^ expected one of `!` or `::`
8+
LL |
9+
LL | }
10+
| - the item list ends here
11+
12+
error: aborting due to 1 previous error
13+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ edition: 2018
2+
3+
fn main() {
4+
async Move {}
5+
//~^ ERROR expected one of
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `move`, `|`, or `||`, found `Move`
2+
--> $DIR/async-move.rs:4:11
3+
|
4+
LL | async Move {}
5+
| ^^^^ expected one of `move`, `|`, or `||`
6+
7+
error: aborting due to 1 previous error
8+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cnst fn code() {}
2+
//~^ ERROR expected one of
3+
4+
fn main() {
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `!` or `::`, found keyword `fn`
2+
--> $DIR/const-fn.rs:1:6
3+
|
4+
LL | cnst fn code() {}
5+
| ^^ expected one of `!` or `::`
6+
7+
error: aborting due to 1 previous error
8+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn foo<consta N: usize>(_arr: [i32; N]) {}
2+
//~^ ERROR expected one of
3+
4+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `,`, `:`, `=`, or `>`, found `N`
2+
--> $DIR/const-generics.rs:1:15
3+
|
4+
LL | fn foo<consta N: usize>(_arr: [i32; N]) {}
5+
| ^ expected one of `,`, `:`, `=`, or `>`
6+
7+
error: aborting due to 1 previous error
8+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cons A: u8 = 10;
2+
//~^ ERROR expected one of
3+
4+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `!` or `::`, found `A`
2+
--> $DIR/const.rs:1:6
3+
|
4+
LL | cons A: u8 = 10;
5+
| ^ expected one of `!` or `::`
6+
7+
error: aborting due to 1 previous error
8+

0 commit comments

Comments
 (0)