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
rust
/
src
/
test
/
run-pass
/
regions-simple.rs
9 lines
103 B
Rust
Raw
Normal View
History
Unescape
Escape
test: Add a simple region test, xfail'd in the pretty printer
2012-03-08 17:45:11 -08:00
fn
main
(
)
{
replace mutbl pass with borrowck
2012-05-10 19:58:23 -07:00
let
mut
x
:
int
=
3
;
Bulk-edit mutable -> mut.
2012-03-26 18:35:18 -07:00
let
y
:
&
mut
int
=
&
mut
x
;
test: Remove unsafe from the region tests
2012-03-14 16:18:33 -07:00
*
y
=
5
;
log
(
debug
,
*
y
)
;
test: Add a simple region test, xfail'd in the pretty printer
2012-03-08 17:45:11 -08:00
}
Reference in New Issue
Copy Permalink