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