blob: 0c905ab95e0aa5337709532dfc719cf5c5102b5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// -*- rust -*-
fn main() {
let int x = 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);
}
|