Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
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
;
}