Sign in
rust
/
rust
/
44ee391300a7cc4623410145e4aca511cd2bd00e
/
.
/
tests
/
ui
/
numbers-arithmetic
/
mod-zero.rs
blob: 300bd765c403721e67264c69bb0965024d3b55ef [
file
]
//@ run-fail
//@ error-pattern:attempt to calculate the remainder with a divisor of zero
//@ needs-subprocess
#[
allow
(
unconditional_panic
)]
fn
main
()
{
let
y
=
0
;
let
_z
=
1
%
y
;
}