rust/tests/ui/methods/method-call-lifetime-args-unresolved.rs

7 lines
219 B
Rust
Raw Normal View History

2016-05-17 08:01:31 -05:00
fn main() {
2022-03-06 08:44:48 -06:00
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
2016-05-17 08:01:31 -05:00
}