]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex1-return-one-existing-name-return-type-is-anon.rs
CommitLineData
041b39d2
XL
1struct Foo {
2 field: i32
3}
a7813a04 4
041b39d2
XL
5impl Foo {
6 fn foo<'a>(&self, x: &'a i32) -> &i32 {
7
ff7c6d11 8 x //~ ERROR lifetime mismatch
041b39d2
XL
9
10 }
11
12}
13
14fn main() { }