]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / 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
13 }