fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
365 B20 linesraw
1#[prelude_import]
2use ::std::prelude::rust_2015::*;
3#[macro_use]
4extern crate std;
5// Test to print lifetimes on HIR pretty-printing.
6
7// pretty-compare-only
8// pretty-mode:hir
9// pp-exact:issue-85089.pp
10
11trait A<'x> { }
12trait B<'x> { }
13
14struct Foo<'b> {
15    bar: &'b dyn for<'a> A<'a>,
16}
17
18impl <'a> B<'a> for dyn for<'b> A<'b> { }
19
20impl <'a> A<'a> for Foo<'a> { }