diff options
| author | David Wood <david@davidtw.co> | 2018-08-14 11:11:58 +0200 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-08-14 11:12:13 +0200 |
| commit | 7b026568f7bf36540fdc7db44dd8e37bb62ad233 (patch) | |
| tree | 9543ef5735848c67b218fadc39690d756c8ce859 | |
| parent | d775e6132ceb5f7104cf2fcaa380b0fc6071301d (diff) | |
| download | rust-7b026568f7bf36540fdc7db44dd8e37bb62ad233.tar.gz rust-7b026568f7bf36540fdc7db44dd8e37bb62ad233.zip | |
Moved problematic tests on x86_64-gnu-nopt back to compile-fail.
| -rw-r--r-- | src/test/compile-fail/const-err3.rs (renamed from src/test/ui/consts/const-err3.rs) | 0 | ||||
| -rw-r--r-- | src/test/ui/consts/const-err3.stderr | 32 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/test/ui/consts/const-err3.rs b/src/test/compile-fail/const-err3.rs index f5e43b57e77..f5e43b57e77 100644 --- a/src/test/ui/consts/const-err3.rs +++ b/src/test/compile-fail/const-err3.rs diff --git a/src/test/ui/consts/const-err3.stderr b/src/test/ui/consts/const-err3.stderr deleted file mode 100644 index 5be46248fa7..00000000000 --- a/src/test/ui/consts/const-err3.stderr +++ /dev/null @@ -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 - |
