mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
470 B
Plaintext
16 lines
470 B
Plaintext
error[E0794]: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
|
|
--> $DIR/issue-80618.rs:6:19
|
|
|
|
|
LL | let _ = foo::<'static>;
|
|
| ^^^^^^^
|
|
|
|
|
note: the late bound lifetime parameter is introduced here
|
|
--> $DIR/issue-80618.rs:1:8
|
|
|
|
|
LL | fn foo<'a>(x: &'a str) -> &'a str {
|
|
| ^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0794`.
|