summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/overflowing-mul.rs
blob: ec5279d321cdb8e23d7bf6fc3f009ab0942bd8d0 (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;
}