fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0599]: no method named `hello` found for struct `std::cell::RefMut<'_, HasAssocMethod>` in the current scope 2 --> $DIR/suggest-assoc-fn-call-with-turbofish-through-deref.rs:11:11 3 | 4LL | state.hello(); 5 | ------^^^^^ 6 | | | 7 | | this is an associated function, not a method 8 | help: use associated function syntax instead: `HasAssocMethod::hello` 9 | 10 = note: found the following associated functions; to be used as methods, functions must have a `self` parameter 11note: the candidate is defined in an impl for the type `HasAssocMethod` 12 --> $DIR/suggest-assoc-fn-call-with-turbofish-through-deref.rs:6:5 13 | 14LL | fn hello() {} 15 | ^^^^^^^^^^ 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0599`.