]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs
Rollup merge of #107116 - ozkanonur:consolidate-bootstrap-docs, r=jyn514
[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 }