]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/issue-70304.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-70304.stderr
CommitLineData
923072b8 1error[E0637]: `'_` cannot be used here
f2b60f7d 2 --> $DIR/issue-70304.rs:46:41
cdc7bbd5
XL
3 |
4LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
923072b8 5 | ^^ `'_` is a reserved lifetime name
cdc7bbd5 6
04454e1e 7error[E0106]: missing lifetime specifier
f2b60f7d 8 --> $DIR/issue-70304.rs:46:61
04454e1e
FG
9 |
10LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'_>> {
11 | ^^ expected named lifetime parameter
12 |
13 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
14help: consider using the `'static` lifetime
15 |
16LL | fn create_doc() -> impl Document<Cursor<'_> = DocCursorImpl<'static>> {
17 | ~~~~~~~
18
064997fb 19error: missing required bound on `Cursor`
f2b60f7d 20 --> $DIR/issue-70304.rs:2:5
064997fb
FG
21 |
22LL | type Cursor<'a>: DocCursor<'a>;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
24 | |
25 | help: add the required where clause: `where Self: 'a`
26 |
27 = note: this bound is currently required to ensure that impls have maximum flexibility
28 = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
29
30error: aborting due to 3 previous errors
cdc7bbd5 31
923072b8
FG
32Some errors have detailed explanations: E0106, E0637.
33For more information about an error, try `rustc --explain E0106`.