fmt
This commit is contained in:
parent
3ef558ec15
commit
7a83e2f30d
1 changed files with 1 additions and 2 deletions
|
|
@ -7,10 +7,9 @@
|
|||
// Miri does not implement the codegen-time hack that backs `#[rustc_inherit_overflow_checks]`.
|
||||
// use std::ops::*;
|
||||
|
||||
|
||||
// Disable _compile-time_ overflow linting
|
||||
// so that we can test runtime overflow checks
|
||||
#![allow(arithmetic_overflow)]
|
||||
#![allow(arithmetic_overflow)]
|
||||
|
||||
fn main() {
|
||||
assert_eq!(-{ -0x80i8 }, -0x80);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue