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
f236b850c0
rust
/
src
/
test
/
run-fail
/
borrowck-wg-fail-3.rs
10 lines
114 B
Rust
Raw
Normal View
History
Unescape
Escape
librustc: Implement write guards for borrowing `@mut` to `&` or `&mut`. r=nmatsakis
2013-01-11 23:01:42 -06:00
// error-pattern:borrowed
fn
main
(
)
{
let
x
=
@
mut
3
;
let
y
:
&
mut
int
=
x
;
remove some unused mut decls
2013-04-30 15:35:01 -05:00
let
z
=
x
;
*
z
=
5
;
librustc: Implement write guards for borrowing `@mut` to `&` or `&mut`. r=nmatsakis
2013-01-11 23:01:42 -06:00
}
Reference in New Issue
Copy Permalink