2023-01-27 15:23:01 -06:00
|
|
|
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 {
|
|
|
|
| ^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-27 15:23:01 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0794`.
|