]>
Commit | Line | Data |
---|---|---|
f9f354fc | 1 | // run-fail |
5bcae85e | 2 | // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow' |
f9f354fc | 3 | // ignore-emscripten no processes |
c34b1796 | 4 | // compile-flags: -C debug-assertions |
223e47cc | 5 | |
74b04a01 | 6 | #![allow(arithmetic_overflow)] |
94b46f34 | 7 | |
c34b1796 | 8 | fn main() { |
b039eaaf | 9 | let x = 200u8 * 4; |
c34b1796 | 10 | } |