-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compile-fail tests to be ui tests
- Loading branch information
1 parent
3290774
commit 715005c
Showing
5 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
error[E0435]: attempt to use a non-constant value in a constant | ||
--> $DIR/issue-42060.rs:13:23 | ||
| | ||
LL | let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant | ||
| ^^^^^ non-constant value | ||
|
||
error[E0435]: attempt to use a non-constant value in a constant | ||
--> $DIR/issue-42060.rs:19:13 | ||
| | ||
LL | <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant | ||
| ^ non-constant value | ||
|
||
error[E0516]: `typeof` is a reserved keyword but unimplemented | ||
--> $DIR/issue-42060.rs:13:16 | ||
| | ||
LL | let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant | ||
| ^^^^^^^^^^^^^ reserved keyword | ||
|
||
error[E0516]: `typeof` is a reserved keyword but unimplemented | ||
--> $DIR/issue-42060.rs:19:6 | ||
| | ||
LL | <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant | ||
| ^^^^^^^^^ reserved keyword | ||
|
||
error: aborting due to 4 previous errors | ||
|
||
Some errors occurred: E0435, E0516. | ||
For more information about an error, try `rustc --explain E0435`. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
error: expected `|`, found `}` | ||
--> $DIR/issue-43196.rs:13:1 | ||
| | ||
LL | | | ||
| - expected `|` here | ||
LL | } | ||
| ^ unexpected token | ||
|
||
error: expected item, found `|` | ||
--> $DIR/issue-43196.rs:15:1 | ||
| | ||
LL | | | ||
| ^ expected item | ||
|
||
error: aborting due to 2 previous errors | ||
|