about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/location-sub-assign-overflow.rs
blob: 1bc1a9b2d66c831305c9fb5e45b669061b59cb72 (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;
}