Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
typeck
/
issue-91210-ptr-method.rs
blob: 1ae9331e642be8effab54fe18a3119c64e206ce5 [
file
] [
log
] [
blame
]
// Regression test for issue #91210.
//@ run-rustfix
#![
allow
(
unused
)]
struct
Foo
{
read
:
i32
}
unsafe
fn
blah
(
x
:
*
mut
Foo
)
{
x
.
read
=
4
;
//~^ ERROR: attempted to take value of method
//~| HELP: to access the field, dereference first
}
fn
main
()
{}