1 This error occurs when the compiler is unable to unambiguously infer the
2 return type of a function or method which is generic on return type, such
3 as the `collect` method for `Iterator`s.
15 Here we have an addition of `d` and `n.into()`. Hence, `n.into()` can return
16 any type `T` where `u64: Add<T>`. On the other hand, the `into` method can
17 return any type where `u32: Into<T>`.
19 The author of this code probably wants `into()` to return a `u64`, but the
20 compiler can't be sure that there isn't another type `T` where both
21 `u32: Into<T>` and `u64: Add<T>`.
23 To resolve this error, use a concrete type for the intermediate expression:
29 let m: u64 = n.into();
34 Note that the type of `v` can now be inferred from the type of `temp`.