2022-10-14 03:53:09 -05:00
|
|
|
// Test to print lifetimes on HIR pretty-printing.
|
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ pretty-compare-only
|
|
|
|
//@ pretty-mode:hir
|
|
|
|
//@ pp-exact:issue-85089.pp
|
2022-10-14 03:53:09 -05:00
|
|
|
|
|
|
|
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> {}
|