diff options
Diffstat (limited to 'tests/pretty/issue-85089.rs')
-rw-r--r-- | tests/pretty/issue-85089.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pretty/issue-85089.rs b/tests/pretty/issue-85089.rs new file mode 100644 index 000000000..eb45d4731 --- /dev/null +++ b/tests/pretty/issue-85089.rs @@ -0,0 +1,16 @@ +// Test to print lifetimes on HIR pretty-printing. + +// pretty-compare-only +// pretty-mode:hir +// pp-exact:issue-85089.pp + +trait A<'x> {} +trait B<'x> {} + +struct Foo<'b> { + pub bar: &'b dyn for<'a> A<'a>, +} + +impl<'a> B<'a> for dyn for<'b> A<'b> {} + +impl<'a> A<'a> for Foo<'a> {} |