]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/u8-incr.rs
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccjit-codegen
[rust.git] / src / test / ui / numbers-arithmetic / u8-incr.rs
1 // run-pass
2
3
4
5
6 pub fn main() {
7     let mut x: u8 = 12;
8     let y: u8 = 12;
9     x = x + 1;
10     x = x - 1;
11     assert_eq!(x, y);
12     // x = 14;
13     // x = x + 1;
14
15 }