diff options
Diffstat (limited to 'tests/pretty/issue-85089.pp')
-rw-r--r-- | tests/pretty/issue-85089.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/pretty/issue-85089.pp b/tests/pretty/issue-85089.pp new file mode 100644 index 000000000..f84e9df04 --- /dev/null +++ b/tests/pretty/issue-85089.pp @@ -0,0 +1,20 @@ +#[prelude_import] +use ::std::prelude::rust_2015::*; +#[macro_use] +extern crate std; +// 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> { + bar: &'b dyn for<'a> A<'a>, +} + +impl <'a> B<'a> for dyn for<'b> A<'b> { } + +impl <'a> A<'a> for Foo<'a> { } |