Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
numbers-arithmetic
/
overflowing-mul.rs
blob: 2645a32d5ad0da8cb2158abce3146887a6c8b265 [
file
]
//@ run-fail
//@ regex-error-pattern: thread 'main'.*panicked
//@ error-pattern: attempt to multiply with overflow
//@ needs-subprocess
//@ compile-flags: -C debug-assertions
#![
allow
(
arithmetic_overflow
)]
fn
main
()
{
let
x
=
200u8
*
4
;
}