]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52534-2.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / issue-52534-2.rs
1 fn foo(x: &u32) -> &u32 {
2     let y;
3
4     {
5         let x = 32;
6         y = &x
7 //~^ ERROR does not live long enough
8     }
9
10     println!("{}", y);
11     x
12 }
13
14 fn main() { }