]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/return-without-lifetime.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / return-without-lifetime.rs
CommitLineData
532ac7d7
XL
1struct Thing<'a>(&'a ());
2struct Foo<'a>(&usize);
3//~^ ERROR missing lifetime specifier
4
5fn func1<'a>(_arg: &'a Thing) -> &() { unimplemented!() }
6//~^ ERROR missing lifetime specifier
7fn func2<'a>(_arg: &Thing<'a>) -> &() { unimplemented!() }
8//~^ ERROR missing lifetime specifier
9
10fn main() {}