Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
incremental
/
warnings-reemitted.rs
blob: c38c43d46df6e0df01b82ff1269bb1698eaa3c87 [
file
] [
log
] [
blame
] [
edit
]
//@ revisions: cfail1 cfail2 cfail3
//@ compile-flags: -Coverflow-checks=on
//@ build-pass
#![
warn
(
arithmetic_overflow
)]
fn
main
()
{
let
_
=
255u8
+
1
;
//~ WARNING operation will overflow
}