summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/u8-incr.rs
blob: 5242acf5b98c4435720f50662f7c2ec2f278a2b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass




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

}