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
/
unique-fn-arg-mut.rs
9 lines
111 B
Rust
Raw
Normal View
History
Unescape
Escape
Remove by-mutable-ref mode from the compiler and test cases. Closes #3513
2012-10-06 00:07:53 -05:00
fn
f
(
i
:
&
mut
~
int
)
{
*
i
=
~
200
;
Add a test for mutable references to unique boxes as function arguments Issue #409
2011-09-22 17:03:44 -05:00
}
fn
main
(
)
{
make --enforce-mut-vars always on, add mut annotations to remaining files
2012-03-22 10:39:41 -05:00
let
mut
i
=
~
100
;
Remove by-mutable-ref mode from the compiler and test cases. Closes #3513
2012-10-06 00:07:53 -05:00
f
(
&
mut
i
)
;
Add a test for mutable references to unique boxes as function arguments Issue #409
2011-09-22 17:03:44 -05:00
assert
*
i
=
=
200
;
}
Reference in New Issue
Copy Permalink