mirror of https://github.com/rust-lang/rust
21 lines
582 B
Plaintext
21 lines
582 B
Plaintext
error[E0261]: use of undeclared lifetime name `'d`
|
|
--> $DIR/issue-109299.rs:6:12
|
|
|
|
|
LL | impl Lexer<'d> {
|
|
| - ^^ undeclared lifetime
|
|
| |
|
|
| help: consider introducing lifetime `'d` here: `<'d>`
|
|
|
|
error: lifetime may not live long enough
|
|
--> $DIR/issue-109299.rs:10:1
|
|
|
|
|
LL | fn test(_: Lexer::Cursor) {}
|
|
| ^^^^^^^^-^^^^^^^^^^^^^^^^
|
|
| | |
|
|
| | has type `Lexer<'1>::Cursor`
|
|
| requires that `'1` must outlive `'static`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0261`.
|