rust/tests/ui/methods/method-call-lifetime-args-unresolved.rs
2023-01-11 09:32:08 +00:00

7 lines
219 B
Rust

fn main() {
0.clone::<'a>();
//~^ ERROR use of undeclared lifetime name `'a`
//~| WARN cannot specify lifetime arguments explicitly if late bound
//~| WARN this was previously accepted by the compiler
}