summary refs log tree commit diff
path: root/tests/pretty/issue-85089.pp
blob: 28a85bdf4ad8b9c0bd775513278c1eadfd3dfbc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[attr = MacroUse {arguments: UseAll}]
extern crate std;
#[prelude_import]
use ::std::prelude::rust_2015::*;
// 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> { }