6 lines
80 B
Rust
6 lines
80 B
Rust
|
// error-pattern:divide by zero
|
||
|
fn main() {
|
||
|
let y = 0;
|
||
|
let z = 1 / y;
|
||
|
}
|