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