rust/src/test/run-pass/u8-incr-decr.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

19 lines
298 B
Rust

// -*- rust -*-
// These constants were chosen because they aren't used anywhere
// in the rest of the generated code so they're easily grep-able.
fn main() {
let x: u8 = 19u8; // 0x13
let y: u8 = 35u8; // 0x23
x = x + 7u8; // 0x7
y = y - 9u8; // 0x9
assert (x == y);
}