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