about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/i8-incr.rs
blob: a0f1becce2ea15de3fbe6ce167694a32d43aeb80 (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);
}