]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/issue-91210-ptr-method.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / typeck / issue-91210-ptr-method.rs
CommitLineData
a2a8927a
XL
1// Regression test for issue #91210.
2
3// run-rustfix
4
5#![allow(unused)]
6
7struct Foo { read: i32 }
8
9unsafe fn blah(x: *mut Foo) {
10 x.read = 4;
11 //~^ ERROR: attempted to take value of method
12 //~| HELP: to access the field, dereference first
13}
14
15fn main() {}