This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
12c32e944d
rust
/
src
/
test
/
run-pass
/
swap-1.rs
5 lines
95 B
Rust
Raw
Normal View
History
Unescape
Escape
make --enforce-mut-vars always on, add mut annotations to remaining files
2012-03-22 10:39:41 -05:00
fn
main
(
)
{
let
mut
x
=
3
;
let
mut
y
=
7
;
x
<
->
y
;
assert
(
x
=
=
7
)
;
assert
(
y
=
=
3
)
;
}
Reference in New Issue
Copy Permalink