1 error[E0106]: missing lifetime specifier
2 --> $DIR/return-without-lifetime.rs:2:16
4 LL | struct Foo<'a>(&usize);
5 | ^ expected named lifetime parameter
7 help: consider using the `'a` lifetime
9 LL | struct Foo<'a>(&'a usize);
12 error[E0106]: missing lifetime specifier
13 --> $DIR/return-without-lifetime.rs:5:34
15 LL | fn func1<'a>(_arg: &'a Thing) -> &() { unimplemented!() }
16 | --------- ^ expected named lifetime parameter
18 = help: this function's return type contains a borrowed value, but the signature does not say which one of `_arg`'s 2 lifetimes it is borrowed from
19 help: consider using the `'a` lifetime
21 LL | fn func1<'a>(_arg: &'a Thing) -> &'a () { unimplemented!() }
24 error[E0106]: missing lifetime specifier
25 --> $DIR/return-without-lifetime.rs:7:35
27 LL | fn func2<'a>(_arg: &Thing<'a>) -> &() { unimplemented!() }
28 | ---------- ^ expected named lifetime parameter
30 = help: this function's return type contains a borrowed value, but the signature does not say which one of `_arg`'s 2 lifetimes it is borrowed from
31 help: consider using the `'a` lifetime
33 LL | fn func2<'a>(_arg: &Thing<'a>) -> &'a () { unimplemented!() }
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0106`.