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