]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/return-without-lifetime.rs
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
[rust.git] / src / test / ui / suggestions / return-without-lifetime.rs
1 struct Thing<'a>(&'a ());
2 struct Foo<'a>(&usize);
3 //~^ ERROR missing lifetime specifier
4
5 fn func1<'a>(_arg: &'a Thing) -> &() { unimplemented!() }
6 //~^ ERROR missing lifetime specifier
7 fn func2<'a>(_arg: &Thing<'a>) -> &() { unimplemented!() }
8 //~^ ERROR missing lifetime specifier
9
10 fn main() {}