2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-13 13:00:59 -06:00
|
|
|
struct ctxt<'tcx> {
|
|
|
|
x: &'tcx i32
|
|
|
|
}
|
|
|
|
|
|
|
|
trait AstConv<'tcx> {
|
|
|
|
fn tcx<'a>(&'a self) -> &'a ctxt<'tcx>;
|
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn foo(conv: &dyn AstConv) { }
|
2015-01-13 13:00:59 -06:00
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
fn bar<'tcx>(conv: &dyn AstConv<'tcx>) {
|
2015-01-13 13:00:59 -06:00
|
|
|
foo(conv)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|