Closed
Description
The second error in this snippet is "nonsense" because it says the type parameter N
is not constrained, while the real error was already reported — the actual type could not be imported.
error[E0432]: unresolved import `graph::stable::StableGraph`
--> src/visit.rs:27:5
|
27 | use graph::stable::StableGraph;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `stable` in `graph`
error[E0207]: the type parameter `N` is not constrained by the impl trait, self type, or predicates
--> src/visit.rs:63:10
|
63 | impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix>
| ^ unconstrained type parameter
Found in: rustc 1.13.0-nightly (d0623cf 2016-09-26)