mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
8 lines
187 B
Rust
8 lines
187 B
Rust
// See https://github.com/rust-lang/rust/pull/67911#issuecomment-576023915
|
|
fn f<'a, 'b>(x: i32) -> (&'a i32, &'b i32) {
|
|
let y = &x;
|
|
(y, y) //~ ERROR cannot return
|
|
}
|
|
|
|
fn main() {}
|