diff options
Diffstat (limited to 'src/test/ui/typeck/issue-91210-ptr-method.stderr')
-rw-r--r-- | src/test/ui/typeck/issue-91210-ptr-method.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/typeck/issue-91210-ptr-method.stderr b/src/test/ui/typeck/issue-91210-ptr-method.stderr new file mode 100644 index 000000000..503a32373 --- /dev/null +++ b/src/test/ui/typeck/issue-91210-ptr-method.stderr @@ -0,0 +1,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`. |