librustc: Allow &T to be assigned to *T. r=nmatsakis

This commit is contained in:
Patrick Walton 2012-11-27 18:41:17 -08:00
parent 07f4031bb4
commit 430583c8b4
2 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,12 @@
fn f(x: *int) {
unsafe {
assert *x == 3;
}
}
fn main() {
f(&3);
}