Given code like cos(3.3); where cos is a method of f64, we currently look for free functions elsewhere in the dependency tree:
error[E0425]: cannot find function `cos` in this scope
--> src/main.rs:2:13
|
2 | let _ = cos(3.3);
| ^^^ not found in this scope
|
help: consider importing this function
|
1 | use libm::cos;
|
But we should also check for existence of methods under that name for its sole argument.
error[E0425]: cannot find function `cos` in this scope
--> src/main.rs:2:13
|
2 | let _ = cos(3.3);
| ^^^ not found in this scope
|
help: you might have meant to call method `f64::cos`
|
2 | let _ = 3.3.cos();
| ~~~~~~~~~
Given code like
cos(3.3);wherecosis a method off64, we currently look for free functions elsewhere in the dependency tree:But we should also check for existence of methods under that name for its sole argument.