Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-pass
/
opeq.rs
blob: 59bbbcf794505a2d4f2f8d73324678f33f8c21ab [
file
]
// -*- rust -*-
fn
main
()
{
let
mut
x
:
int
=
1
;
x
*=
2
;
log
(
debug
,
x
);
assert
(
x
==
2
);
x
+=
3
;
log
(
debug
,
x
);
assert
(
x
==
5
);
x
*=
x
;
log
(
debug
,
x
);
assert
(
x
==
25
);
x
/=
5
;
log
(
debug
,
x
);
assert
(
x
==
5
);
}