Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
numbers-arithmetic
/
overflowing-add.rs
blob: a63fc3bccf1dc28239705b84d4170ac4e4731a59 [
file
] [
log
] [
blame
]
//@ run-fail
//@ regex-error-pattern: thread 'main'.*panicked
//@ error-pattern: attempt to add with overflow
//@ compile-flags: -C debug-assertions
//@ needs-subprocess
#![
allow
(
arithmetic_overflow
)]
fn
main
()
{
let
_x
=
200u8
+
200u8
+
200u8
;
}