summaryrefslogtreecommitdiffstats
path: root/tests/ui/late-bound-lifetimes/issue-80618.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/late-bound-lifetimes/issue-80618.rs')
-rw-r--r--tests/ui/late-bound-lifetimes/issue-80618.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/late-bound-lifetimes/issue-80618.rs b/tests/ui/late-bound-lifetimes/issue-80618.rs
new file mode 100644
index 000000000..6aa8ff461
--- /dev/null
+++ b/tests/ui/late-bound-lifetimes/issue-80618.rs
@@ -0,0 +1,8 @@
+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]
+}