blob: 2645a32d5ad0da8cb2158abce3146887a6c8b265 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | //@ 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;
}
 |