]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrowed-universal-error-2.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / borrowed-universal-error-2.rs
1 fn foo<'a>(x: &'a (u32,)) -> &'a u32 {
2     let v = 22;
3     &v
4     //~^ ERROR cannot return reference to local variable `v` [E0515]
5 }
6
7 fn main() {}