https://pantsbuild.org/ logo
#general
Title
# general
l

little-action-42934

05/23/2019, 5:13 PM
Copy code
error[E0034]: multiple applicable items in scope
   --> /Users/allan/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.4/src/graph.rs:489:17
    |
489 |         assert!(Ix::max().index() == !0 || NodeIndex::end() != node_idx);
    |                 ^^^^^^^ multiple `max` found
    |
note: candidate #1 is defined in the trait `graph_impl::IndexType`
   --> /Users/allan/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.4/src/graph.rs:47:5
    |
47  |     fn max() -> Self;
    |     ^^^^^^^^^^^^^^^^^
    = help: to disambiguate the method call, write `graph_impl::IndexType::max(...)` instead
note: candidate #2 is defined in the trait `std::cmp::Ord`
    = help: to disambiguate the method call, write `std::cmp::Ord::max(...)` instead

error[E0034]: multiple applicable items in scope
   --> /Users/allan/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.4/src/graph.rs:526:17
    |
526 |         assert!(Ix::max().index() == !0 || EdgeIndex::end() != edge_idx);
    |                 ^^^^^^^ multiple `max` found
    |
note: candidate #1 is defined in the trait `graph_impl::IndexType`
   --> /Users/allan/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.4/src/graph.rs:47:5
    |
47  |     fn max() -> Self;
    |     ^^^^^^^^^^^^^^^^^
    = help: to disambiguate the method call, write `graph_impl::IndexType::max(...)` instead
note: candidate #2 is defined in the trait `std::cmp::Ord`
    = help: to disambiguate the method call, write `std::cmp::Ord::max(...)` instead

error: aborting due to 2 previous errors