1 // Test the case where the `Self` type has a bound lifetime that must
2 // be adjusted in the fn signature. Issue #19537.
4 use std::collections::HashMap;
7 map: HashMap<usize, &'a str>
11 fn new() -> Foo<'a> { panic!() }
12 fn insert(&'a mut self) { }
15 let mut foo = Foo::new();
17 foo.insert(); //~ ERROR cannot borrow