rust/tests/ui/numbers-arithmetic/location-divide-by-zero.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
145 B
Rust
Raw Normal View History

2023-11-23 10:54:06 -06:00
//@ run-fail
//@ error-pattern:location-divide-by-zero.rs
// https://github.com/rust-lang/rust/issues/114814
fn main() {
let _ = 1 / &0;
}