Skip to content

Commit 73e1f89

Browse files
committed
Move parse-fail tests to UI
1 parent 554b787 commit 73e1f89

File tree

541 files changed

+3128
-0
lines changed

Some content is hidden

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

541 files changed

+3128
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
2+
--> $DIR/ascii-only-character-escape.rs:14:16
3+
|
4+
LL | let x = "/x80"; //~ ERROR may only be used
5+
| ^^
6+
7+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
8+
--> $DIR/ascii-only-character-escape.rs:15:16
9+
|
10+
LL | let y = "/xff"; //~ ERROR may only be used
11+
| ^^
12+
13+
error: this form of character escape may only be used with characters in the range [/x00-/x7f]
14+
--> $DIR/ascii-only-character-escape.rs:16:16
15+
|
16+
LL | let z = "/xe2"; //~ ERROR may only be used
17+
| ^^
18+
19+
error: aborting due to 3 previous errors
20+
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 `[`
2+
--> $DIR/assoc-oddities-1.rs:20:28
3+
|
4+
LL | ..if c { a } else { b }[n]; //~ ERROR expected one of
5+
| ^ expected one of `.`, `;`, `?`, or `}` here
6+
7+
error: aborting due to previous error
8+
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 `[`
2+
--> $DIR/assoc-oddities-2.rs:15:29
3+
|
4+
LL | x..if c { a } else { b }[n]; //~ ERROR expected one of
5+
| ^ expected one of `.`, `;`, `?`, or `}` here
6+
7+
error: aborting due to previous error
8+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: expected identifier, found keyword `for`
2+
--> $DIR/associated-types-project-from-hrtb-explicit.rs:22:21
3+
|
4+
LL | fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
5+
| ^^^ expected identifier, found keyword
6+
7+
error: expected one of `::` or `>`, found `Foo`
8+
--> $DIR/associated-types-project-from-hrtb-explicit.rs:22:29
9+
|
10+
LL | fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
11+
| ^^^ expected one of `::` or `>` here
12+
13+
error: aborting due to 2 previous errors
14+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: unexpected token: `]`
2+
--> $DIR/attr-bad-meta-2.rs:11:9
3+
|
4+
LL | #[path =] //~ ERROR unexpected token: `]`
5+
| ^ unexpected token after this
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)