2019-03-12 16:57:13 -05:00
|
|
|
struct Thing<'a>(&'a ());
|
2019-03-12 20:18:24 -05:00
|
|
|
struct Foo<'a>(&usize);
|
|
|
|
//~^ ERROR missing lifetime specifier
|
2019-03-12 16:57:13 -05:00
|
|
|
|
|
|
|
fn func1<'a>(_arg: &'a Thing) -> &() { unimplemented!() }
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
fn func2<'a>(_arg: &Thing<'a>) -> &() { unimplemented!() }
|
|
|
|
//~^ ERROR missing lifetime specifier
|
|
|
|
|
|
|
|
fn main() {}
|