]> git.lizzy.rs Git - rust.git/blob - tests/pretty/issue-85089.rs
Rollup merge of #101569 - m-ou-se:alloc-no-rexport-argumentv1, r=thomcc
[rust.git] / tests / pretty / issue-85089.rs
1 // Test to print lifetimes on HIR pretty-printing.
2
3 // pretty-compare-only
4 // pretty-mode:hir
5 // pp-exact:issue-85089.pp
6
7 trait A<'x> {}
8 trait B<'x> {}
9
10 struct Foo<'b> {
11     pub bar: &'b dyn for<'a> A<'a>,
12 }
13
14 impl<'a> B<'a> for dyn for<'b> A<'b> {}
15
16 impl<'a> A<'a> for Foo<'a> {}