Closed
Description
Here is a fairly small test case (playground):
#![feature(nll)]
fn main() {
use std::collections::HashMap;
let mut m: HashMap<(), ()> = HashMap::new();
m.insert((), unimplemented!());
}
The error message is
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `Some((_4, bw0))`,
right: `None`: never found an activation for this borrow!', librustc_mir/borrow_check/borrow_set.rs:121:9