]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_closure.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / mir_check_cast_closure.rs
1 #![allow(dead_code)]
2
3 fn bar<'a, 'b>() -> fn(&'a u32, &'b u32) -> &'a u32 {
4     let g: fn(_, _) -> _ = |_x, y| y;
5     g
6     //~^ ERROR lifetime may not live long enough
7 }
8
9 fn main() {}