rust/tests/pretty/issue-85089.pp
许杰友 Jieyou Xu (Joe) cd25009469
Re-bless tests/pretty
2024-02-22 16:04:05 +00:00

21 lines
368 B
ObjectPascal

#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
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> { }