error[E0277]: the trait bound `Vec<(u32, NodeRepr<u32>)>: StableCollection` is not satisfied
--> tests/ui/graph_macro_stable_node.rs:5:5
|
5 | safegraph::graph!(&mut g => a -- {10} --> b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^
| | |
| | required by a bound introduced by this call
| the trait `StableCollection` is not implemented for `Vec<(u32, NodeRepr<u32>)>`
|
= help: the following other types implement trait `StableCollection`:
BTreeMap<I, S>
HashMap<I, S>
= note: required for `LinkedAdjEdgeGraph<Vec<(u32, NodeRepr<u32>)>, Vec<(u32, ...)>>` to implement `StableNode`
note: required by a bound in `__assert_stable_node`
--> tests/ui/graph_macro_stable_node.rs:5:5
|
5 | safegraph::graph!(&mut g => a -- {10} --> b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `__assert_stable_node`
= note: the full name for the type has been written to '$LONG_TYPE_FILE'
= note: consider using `--verbose` to print the full type name to the console
= note: this error originates in the macro `safegraph_macros::graph` which comes from the expansion of the macro `safegraph::graph` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.