mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
165 B
Rust
16 lines
165 B
Rust
//@ 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;
|
|
|
|
}
|