mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
8 lines
147 B
Rust
8 lines
147 B
Rust
fn foo<'a>(x: &'a (u32,)) -> &'a u32 {
|
|
let v = 22;
|
|
&v
|
|
//~^ ERROR cannot return reference to local variable `v` [E0515]
|
|
}
|
|
|
|
fn main() {}
|