rust/tests/ui/numbers-arithmetic/location-sub-assign-overflow.rs

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

9 lines
129 B
Rust
Raw Normal View History

2023-11-24 00:54:06 +08:00
// run-fail
// ignore-wasm32
// error-pattern:location-sub-assign-overflow.rs
fn main() {
let mut a: u8 = 0;
a -= &1;
}