diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/methods/method-call-lifetime-args-unresolved.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/methods/method-call-lifetime-args-unresolved.rs b/src/test/ui/methods/method-call-lifetime-args-unresolved.rs new file mode 100644 index 000000000..ba7231070 --- /dev/null +++ b/src/test/ui/methods/method-call-lifetime-args-unresolved.rs @@ -0,0 +1,6 @@ +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 +} |