Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
numbers-arithmetic
/
mod-zero.rs
blob: f3cc7c9fc88f0db2eb71789ef7bb13e8f982a89f [
file
] [
log
] [
blame
] [
edit
]
//@ run-fail
//@ error-pattern:attempt to calculate the remainder with a divisor of zero
//@ ignore-emscripten no processes
#[
allow
(
unconditional_panic
)]
fn
main
()
{
let
y
=
0
;
let
_z
=
1
%
y
;
}