diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-29 21:21:22 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-29 21:21:22 +0530 |
| commit | 2e893ea6de472491024589746057e64f00fb928e (patch) | |
| tree | ffc7b85044d6a99e6543628ee24154f4a6e5e905 /src/test/compile-fail | |
| parent | 8886818a9ab3e6c52651038d4e22e2d51b932bb9 (diff) | |
| parent | b8f9c88c2d86135f4d1c170be67d9d15c63b358a (diff) | |
| download | rust-2e893ea6de472491024589746057e64f00fb928e.tar.gz rust-2e893ea6de472491024589746057e64f00fb928e.zip | |
Rollup merge of #34497 - oli-obk:double_negation, r=eddyb
Revert "skip double negation in const eval" This reverts commit 735c018974e5570ea13fd887aa70a011a5b8e7b8. fixes #34395 The original commit was based on a mis-understanding of the overflowing literal lint. This needs to be ported to beta. r? @eddyb
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/lint-type-overflow2.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/compile-fail/lint-type-overflow2.rs b/src/test/compile-fail/lint-type-overflow2.rs index 9499d732a38..e99dfb9aa0f 100644 --- a/src/test/compile-fail/lint-type-overflow2.rs +++ b/src/test/compile-fail/lint-type-overflow2.rs @@ -15,6 +15,7 @@ #[allow(unused_variables)] fn main() { let x2: i8 = --128; //~ error: literal out of range for i8 + //~^ error: attempted to negate with overflow let x = -3.40282348e+38_f32; //~ error: literal out of range for f32 let x = 3.40282348e+38_f32; //~ error: literal out of range for f32 |
