]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-91210-ptr-method.stderr
:arrow_up: rust-analyzer
[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
8    |
9 LL |     (*x).read = 4;
10    |     ++ +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0615`.