use Error;
/// Error returned by [`DoubleMap::insert`][super::DoubleMap::insert] and
/// [`DoubleMap::entry`][super::DoubleMap::entry] when one or both of the supplied
/// keys clash with an existing entry in the map.
///
/// The rejected keys are returned in the variant payload so the caller can reuse
/// them without cloning. `insert` additionally returns the rejected value, so its
/// error type is `KeyConflictError<K1, K2, V>`; `entry` has no value to hand back
/// and uses the default `V = ()`.