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

8 lines
114 B
Rust
Raw Normal View History

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