summaryrefslogtreecommitdiffstats
path: root/tests/pretty/issue-85089.rs
blob: eb45d473119d488081d7d3da2f1b8f35687b083b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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> {}