-
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
ea495e3
commit 3e0cb23
Showing
6 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
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,10 @@ | ||
error: this expression will panic at runtime | ||
--> $DIR/issue-34784.rs:15:9 | ||
| | ||
LL | C => {} | ||
| ^ "pointer arithmetic or comparison" needs an rfc before being allowed inside constants | ||
| | ||
= note: #[deny(const_err)] on by default | ||
|
||
error: aborting due to previous error | ||
|
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 | ||
|