mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
test: Add a simple region test, xfail'd in the pretty printer
This commit is contained in:
parent
8ce6b0dd21
commit
c40bfec45d
12
src/test/run-pass/simple-regions.rs
Normal file
12
src/test/run-pass/simple-regions.rs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// xfail-pretty
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
unsafe {
|
||||||
|
let x : int = 3;
|
||||||
|
let y : &mut int = &mut x;
|
||||||
|
*y = 5;
|
||||||
|
log(debug, *y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user