]> git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/issue-91210-ptr-method.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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`.