2017-12-10 19:47:55 +00:00
|
|
|
error[E0609]: no field `x` on type `*mut A`
|
|
|
|
--> $DIR/issue-11004.rs:17:21
|
|
|
|
|
|
|
|
|
17 | let x : i32 = n.x; //~ no field `x` on type `*mut A`
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `n` is a native pointer; perhaps you need to deref with `(*n).x`
|
|
|
|
|
|
|
|
error[E0609]: no field `y` on type `*mut A`
|
2017-12-10 20:29:24 +00:00
|
|
|
--> $DIR/issue-11004.rs:18:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2017-12-10 20:29:24 +00:00
|
|
|
18 | let y : f64 = n.y; //~ no field `y` on type `*mut A`
|
2017-12-10 19:47:55 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `n` is a native pointer; perhaps you need to deref with `(*n).y`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|