summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-84604.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/issue-84604.rs')
-rw-r--r--tests/ui/lifetimes/issue-84604.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/issue-84604.rs b/tests/ui/lifetimes/issue-84604.rs
new file mode 100644
index 000000000..b315ef051
--- /dev/null
+++ b/tests/ui/lifetimes/issue-84604.rs
@@ -0,0 +1,9 @@
+// run-pass
+// compile-flags: -Csymbol-mangling-version=v0
+
+pub fn f<T: ?Sized>() {}
+pub trait Frob<T: ?Sized> {}
+fn main() {
+ f::<dyn Frob<str>>();
+ f::<dyn for<'a> Frob<str>>();
+}