Moved problematic tests on x86_64-gnu-nopt back to compile-fail.

This commit is contained in:
David Wood 2018-08-14 11:11:58 +02:00
parent d775e6132c
commit 7b026568f7
No known key found for this signature in database
GPG Key ID: 01760B4F9F53F154
2 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
error: this expression will panic at runtime
--> $DIR/const-err3.rs:19:13
|
LL | let b = 200u8 + 200u8 + 200u8;
| ^^^^^^^^^^^^^ attempt to add with overflow
|
note: lint level defined here
--> $DIR/const-err3.rs:12:9
|
LL | #![deny(const_err)]
| ^^^^^^^^^
error: this expression will panic at runtime
--> $DIR/const-err3.rs:21:13
|
LL | let c = 200u8 * 4;
| ^^^^^^^^^ attempt to multiply with overflow
error: this expression will panic at runtime
--> $DIR/const-err3.rs:23:13
|
LL | let d = 42u8 - (42u8 + 1);
| ^^^^^^^^^^^^^^^^^ attempt to subtract with overflow
error: index out of bounds: the len is 1 but the index is 1
--> $DIR/const-err3.rs:25:14
|
LL | let _e = [5u8][1];
| ^^^^^^^^
error: aborting due to 4 previous errors