summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/return-without-lifetime.rs
blob: 9bfce11be9ea3b23938a81e6694099775aec9023 (plain)
1
2
3
4
5
6
7
8
9
10
struct Thing<'a>(&'a ());
struct Foo<'a>(&usize);
//~^ ERROR missing lifetime specifier

fn func1<'a>(_arg: &'a Thing) -> &() { unimplemented!() }
//~^ ERROR missing lifetime specifier
fn func2<'a>(_arg: &Thing<'a>) -> &() { unimplemented!() }
//~^ ERROR missing lifetime specifier

fn main() {}