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

fn main() {
    let mut a: u8 = 255;
    a *= &2;
}