]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/overflowing-mul.rs
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / ui / numbers-arithmetic / overflowing-mul.rs
1 // run-fail
2 // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
3 // ignore-emscripten no processes
4 // compile-flags: -C debug-assertions
5
6 #![allow(arithmetic_overflow)]
7
8 fn main() {
9     let x = 200u8 * 4;
10 }