if !static_sources.is_empty() {
err.note("found the following associated functions; to be used as methods, \
functions must have a `self` parameter");
+ err.help(&format!("try with `{}::{}`", self.ty_to_string(actual), item_name));
report_candidates(&mut err, static_sources);
}
| ^
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
+ = help: try with `{integer}::f`
note: candidate #1 is defined in the trait `issue_41652_b::Tr`
--> $DIR/auxiliary/issue_41652_b.rs:14:5
|
| ^^
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
+ = help: try with `usize::f9`
note: candidate #1 is defined in the trait `CtxtFn`
--> $DIR/issue-7575.rs:16:5
|
| ^^^
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
+ = help: try with `Myisize::fff`
note: candidate #1 is defined in an impl for the type `Myisize`
--> $DIR/issue-7575.rs:51:5
|
| ^^^^^^
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
+ = help: try with `T::is_str`
note: candidate #1 is defined in the trait `ManyImplTrait`
--> $DIR/issue-7575.rs:57:5
|