]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-91210-ptr-method.stderr
Rollup merge of #95361 - scottmcm:valid-align, r=Mark-Simulacrum
[rust.git] / src / test / ui / typeck / issue-91210-ptr-method.stderr
1 error[E0615]: attempted to take value of method `read` on type `*mut Foo`
2   --> $DIR/issue-91210-ptr-method.rs:10:7
3    |
4 LL |     x.read = 4;
5    |     - ^^^^ method, not a field
6    |     |
7    |     help: to access the field, dereference first: `(*x)`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0615`.