]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/overflowing-mul.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / 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 }