I'm working seriously with generics for the first time, numerical generics to be precise.
I'm trying to import std::num::traits
as the documentation instructs, but when I simply add a use
statement for it in a default cargo project's main.rs i get this error:
error[E0432]: unresolved import `std::num::traits`
--> src/main.rs:1:5
|
1 | use std::num::traits;
| ^^^^^^^^^^^^^^^^ no `traits` in `num`
For more information about this error, try `rustc --explain E0432`.
What could be causing this problem?
Thanks for the attention