summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/i8-incr.rs
blob: 718d259f735f48906aa26af0096929587eec8274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass




pub fn main() {
    let mut x: i8 = -12;
    let y: i8 = -12;
    x = x + 1;
    x = x - 1;
    assert_eq!(x, y);
}