Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
numbers-arithmetic
/
mod-zero.rs
blob: 300bd765c403721e67264c69bb0965024d3b55ef [
file
] [
log
] [
blame
]
//@ 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
;
}