mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
17 lines
283 B
Rust
17 lines
283 B
Rust
// 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> {}
|