Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
tests
/
ui
/
numbers-arithmetic
/
overflowing-mul.rs
blob: ec5279d321cdb8e23d7bf6fc3f009ab0942bd8d0 [
file
] [
log
] [
blame
]
// 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
;
}