Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
run-fail
/
overflowing-sub.rs
blob: e3b111dd2bba6e0a2beb842b9ba8478442ad30c2 [
file
] [
log
] [
blame
]
// error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
// compile-flags: -C debug-assertions
#![
allow
(
const_err
)]
fn
main
()
{
let
_x
=
42u8
-
(
42u8
+
1
);
}