]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex1-return-one-existing-name-if-else-2.rs
CommitLineData
041b39d2 1fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
ff7c6d11 2 if x > y { x } else { y } //~ ERROR explicit lifetime
041b39d2 3}
a7813a04 4
041b39d2 5fn main() { }