• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0726]: implicit elided lifetime not allowed here
2 --> $DIR/unsupported_elided.rs:6:14
3  |
46 |         type T;
5  |              ^- help: indicate the anonymous lifetime: `<'_>`
6  |
7  = note: assuming a `'static` lifetime...
8
9error[E0106]: missing lifetime specifier
10 --> $DIR/unsupported_elided.rs:8:24
11  |
128 |         fn f(t: &T) -> &str;
13  |                 --     ^ expected named lifetime parameter
14  |
15  = 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
16help: consider introducing a named lifetime parameter
17  |
188 |         fn f<'a>(t: &'a T) -> &'a str;
19  |             ++++     ++        ++
20