blob: 503a32373d5707fc32b80c4ebc059da7c31fcb31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0615]: attempted to take value of method `read` on type `*mut Foo`
--> $DIR/issue-91210-ptr-method.rs:10:7
|
LL | x.read = 4;
| - ^^^^ method, not a field
| |
| help: to access the field, dereference first: `(*x)`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0615`.
|