]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs
Merge branch 'master' into rusty-hermit
[rust.git] / src / test / ui / suggestions / suggest-assoc-fn-call-with-turbofish-through-deref.rs
1 use std::cell::RefCell;
2
3 struct HasAssocMethod;
4
5 impl HasAssocMethod {
6     fn hello() {}
7 }
8 fn main() {
9     let shared_state = RefCell::new(HasAssocMethod);
10     let state = shared_state.borrow_mut();
11     state.hello();
12     //~^ ERROR no method named `hello` found for type `std::cell::RefMut<'_, HasAssocMethod>`
13 }