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
/
simple-regions.rs
11 lines
141 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
(
)
{
rustc: Add pretty printing support for the address-of operator. Un-XFAIL-pretty simple-regions.rs.
2012-03-08 18:10:07 -08:00
unsafe
{
let
x
:
int
=
3
;
let
y
:
&
mutable
int
=
&
mutable
x
;
test: Add a simple region test, xfail'd in the pretty printer
2012-03-08 17:45:11 -08:00
*
y
=
5
;
rustc: Add pretty printing support for the address-of operator. Un-XFAIL-pretty simple-regions.rs.
2012-03-08 18:10:07 -08:00
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