blob: 2645a32d5ad0da8cb2158abce3146887a6c8b265 [file] [log] [blame]
//@ run-fail
//@ regex-error-pattern: thread 'main'.*panicked
//@ error-pattern: attempt to multiply with overflow
//@ needs-subprocess
//@ compile-flags: -C debug-assertions
#![allow(arithmetic_overflow)]
fn main() {
let x = 200u8 * 4;
}