Skip to content

Factor out code duplication in src/test/bench/core-map.rs #4603

@thestinger

Description

@thestinger

The benchmarks for LinearMap and TreeMap should just be using the Map trait, but I encountered a strange borrow checking issue:

This seems like a borrowck bug, but I'm not sure. The same issue occurs when trying to work around it with a trait like Construct with a new method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions