]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-70304.stderr
Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis
[rust.git] / src / test / ui / generic-associated-types / issue-70304.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/issue-70304.rs:55:41
3    |
4 LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
5    |                                         ^^ expected named lifetime parameter
6    |
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
9    |
10 LL | fn create_doc() -> impl Document<Cursor<'static> = DocCursorImpl<'_>> {
11    |                                         ^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0106`.