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.

8 lines
114 B
Rust
Raw Normal View History

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