summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/overflowing-mul.rs
blob: 34ab5d8fad5e67745c0bcdc47fc06cb211ce7bed (plain)
1
2
3
4
5
6
7
8
9
10
// run-fail
// error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
// ignore-emscripten no processes
// compile-flags: -C debug-assertions

#![allow(arithmetic_overflow)]

fn main() {
    let x = 200u8 * 4;
}