Sign in
◑
Theme
rust
/
rust
/
fc5a7077ca43894de1ea0d3f9f56ac627ceef5c7
/
.
/
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
;
}