mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
9 lines
197 B
Rust
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]
|
|
}
|