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

fn main() {
    let mut a: u8 = 255;
    a += &1;
}