rust/tests/pretty/issue-85089.pp
Jonathan Brouwer 3303534dc8
Update uitest stderrs
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-23 13:33:23 +02:00

21 lines
394 B
Rust

#[prelude_import]
use ::std::prelude::rust_2015::*;
#[attr = MacroUse {arguments: UseAll}]
extern crate std;
// 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> { }