Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
794181788d94b7bc9e4717b97313f525054c4710
/
.
/
src
/
test
/
ui
/
suggestions
/
suggest-assoc-fn-call-with-turbofish-through-deref.rs
blob: f738a1f2119811885144198c617f9e2defd8145a [
file
] [
log
] [
blame
]
use
std
::
cell
::
RefCell
;
struct
HasAssocMethod
;
impl
HasAssocMethod
{
fn
hello
()
{}
}
fn
main
()
{
let
shared_state
=
RefCell
::
new
(
HasAssocMethod
);
let
state
=
shared_state
.
borrow_mut
();
state
.
hello
();
//~^ ERROR no method named `hello` found
}