1 error[E0106]: missing lifetime specifier
2 --> $DIR/issue-70304.rs:55:41
4 LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
5 | ^^ expected named lifetime parameter
7 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
8 help: consider using the `'static` lifetime
10 LL | fn create_doc() -> impl Document<Cursor<'static> = DocCursorImpl<'_>> {
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0106`.