rust/tests/ui/late-bound-lifetimes/issue-80618.rs
2023-03-07 21:26:19 +01:00

9 lines
197 B
Rust

fn foo<'a>(x: &'a str) -> &'a str {
x
}
fn main() {
let _ = foo::<'static>;
//~^ ERROR cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [E0794]
}