2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-03-03 10:42:26 +02:00
|
|
|
let mut x: u8 = 12;
|
|
|
|
let y: u8 = 12;
|
|
|
|
x = x + 1;
|
|
|
|
x = x - 1;
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(x, y);
|
2015-03-03 10:42:26 +02:00
|
|
|
// x = 14;
|
|
|
|
// x = x + 1;
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|