3 struct A { x: i32, y: f64 }
6 unsafe fn access(n:*mut A) -> (i32, f64) {
7 let x : i32 = n.x; //~ no field `x` on type `*mut A`
8 let y : f64 = n.y; //~ no field `y` on type `*mut A`
13 unsafe fn access(n:*mut A) -> (i32, f64) {
20 let a : A = A { x: 3, y: 3.14 };
23 let n : *mut A = mem::transmute(p);
26 println!("x: {}, y: {}", x, y);