20 lines
699 B
Plaintext
20 lines
699 B
Plaintext
error[E0726]: implicit elided lifetime not allowed here
|
|
--> $DIR/unsupported_elided.rs:6:14
|
|
|
|
|
6 | type T;
|
|
| ^- help: indicate the anonymous lifetime: `<'_>`
|
|
|
|
|
= note: assuming a `'static` lifetime...
|
|
|
|
error[E0106]: missing lifetime specifier
|
|
--> $DIR/unsupported_elided.rs:8:24
|
|
|
|
|
8 | fn f(t: &T) -> &str;
|
|
| -- ^ expected named lifetime parameter
|
|
|
|
|
= help: this function's return type contains a borrowed value, but the signature does not say which one of `t`'s 2 lifetimes it is borrowed from
|
|
help: consider introducing a named lifetime parameter
|
|
|
|
|
8 | fn f<'a>(t: &'a T) -> &'a str;
|
|
| ++++ ++ ++
|