Closed
Description
I have some code with this error:
src\main.rs:206:9: 206:35 error: multiple applicable methods in scope [E0034]
src\main.rs:206 0.0.max(normal.dot(light_dir)) * res
^~~~~~~~~~~~~~~~~~~~~~~~~~
src\main.rs:206:9: 206:35 note: candidate #1 is defined in an impl of the trait `core::iter::Iterator` for the type `std::ascii::EscapeDefault`
src\main.rs:206 0.0.max(normal.dot(light_dir)) * res
^~~~~~~~~~~~~~~~~~~~~~~~~~
src\main.rs:206:9: 206:35 note: candidate #2 is defined in an impl of the trait `core::iter::Iterator` for the type `std::collections::hash::table::RawBuckets<'_, _, _>`
src\main.rs:206 0.0.max(normal.dot(light_dir)) * res
^~~~~~~~~~~~~~~~~~~~~~~~~~
...
<hundreds of these>
...
src\main.rs:206:9: 206:35 note: candidate #209 is defined in an impl of the trait `vecmat::num_ext::MaxMin` for the type `f32`
src\main.rs:206 0.0.max(normal.dot(light_dir)) * res
^~~~~~~~~~~~~~~~~~~~~~~~~~
src\main.rs:206:9: 206:35 note: candidate #210 is defined in an impl of the trait `vecmat::num_ext::MaxMin` for the type `f64`
src\main.rs:206 0.0.max(normal.dot(light_dir)) * res
Needless to say, giving this many options isn't helpful. It should be limited to displaying only around 5-10 possibilities, giving more only if requested with an option like --verbose
.