3 fn closure_expecting_bound<F>(_: F)
9 fn expect_bound_supply_named<'x>() {
10 let mut f: Option<&u32> = None;
12 // Here we give a type annotation that `x` should be free. We get
13 // an error because of that.
14 closure_expecting_bound(|x: &'x u32| {
15 //~^ ERROR mismatched types
16 //~| ERROR mismatched types
18 // Borrowck doesn't get a chance to run, but if it did it should error