19 lines
229 B
Rust
19 lines
229 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
fn main() {
|
|
let x: int = 1;
|
|
x *= 2;
|
|
log x;
|
|
assert (x == 2);
|
|
x += 3;
|
|
log x;
|
|
assert (x == 5);
|
|
x *= x;
|
|
log x;
|
|
assert (x == 25);
|
|
x /= 5;
|
|
log x;
|
|
assert (x == 5);
|
|
} |