2024-02-16 20:02:50 +00:00
|
|
|
//@ run-fail
|
2023-09-11 00:59:31 -04:00
|
|
|
//@ regex-error-pattern: thread 'main'.*panicked
|
|
|
|
|
//@ error-pattern: attempt to multiply with overflow
|
2025-01-23 16:36:54 +08:00
|
|
|
//@ needs-subprocess
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: -C debug-assertions
|
2015-02-19 12:37:27 +01:00
|
|
|
|
2020-02-18 22:49:47 +01:00
|
|
|
#![allow(arithmetic_overflow)]
|
2018-05-11 14:33:37 +02:00
|
|
|
|
2015-01-06 00:56:30 -05:00
|
|
|
fn main() {
|
2015-10-02 10:36:45 +02:00
|
|
|
let x = 200u8 * 4;
|
2015-01-06 00:56:30 -05:00
|
|
|
}
|