summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/location-sub-assign-overflow.rs
blob: 5b92ada2e0b0d33a1e0802c1a2c7759a24d0df68 (plain)
1
2
3
4
5
6
7
8
// run-fail
// ignore-wasm32
// error-pattern:location-sub-assign-overflow.rs

fn main() {
    let mut a: u8 = 0;
    a -= &1;
}