2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2016-08-03 21:01:06 -05:00
|
|
|
// error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
|
2015-03-02 16:51:24 -06:00
|
|
|
// compile-flags: -C debug-assertions
|
2015-02-19 05:37:27 -06:00
|
|
|
|
2020-02-18 15:49:47 -06:00
|
|
|
#![allow(arithmetic_overflow)]
|
2018-05-11 07:33:37 -05:00
|
|
|
|
2015-01-05 23:56:30 -06:00
|
|
|
fn main() {
|
2015-10-02 03:36:45 -05:00
|
|
|
let _x = 42u8 - (42u8 + 1);
|
2015-01-05 23:56:30 -06:00
|
|
|
}
|