blob: 59575d2e86e07d5c992d591c7a8afdd3957be6ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ run-fail
//@ error-pattern:thread 'main' panicked
//@ error-pattern:attempt to multiply with overflow
//@ ignore-emscripten no processes
//@ compile-flags: -C debug-assertions
#![allow(arithmetic_overflow)]
fn main() {
let x = 200u8 * 4;
}
|