]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/return-without-lifetime.rs
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / 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() {}