Sign in
fuchsia
/
third_party
/
rust
/
290df4fa5613d3d6cce717509219b18870e3ff86
/
.
/
tests
/
ui
/
opeq.rs
blob: 956ea0684fa70bd0349cb2b1581757eee0dedd8f [
file
] [
log
] [
blame
]
//@ run-pass
pub
fn
main
()
{
let
mut
x
:
isize
=
1
;
x
*=
2
;
println
!(
"{}"
,
x
);
assert_eq
!(
x
,
2
);
x
+=
3
;
println
!(
"{}"
,
x
);
assert_eq
!(
x
,
5
);
x
*=
x
;
println
!(
"{}"
,
x
);
assert_eq
!(
x
,
25
);
x
/=
5
;
println
!(
"{}"
,
x
);
assert_eq
!(
x
,
5
);
}