3 #![allow(unused_variables)]
4 // Test that we handle binder levels in object types correctly.
5 // Initially, the reference to `'tcx` in the object type
6 // `&Typer<'tcx>` was getting an incorrect binder level, yielding
7 // weird compilation ICEs and so forth.
9 // pretty-expanded FIXME #23616
12 fn method(&self, data: &'tcx isize) -> &'tcx isize { data }
19 impl<'tcx> Typer<'tcx> for Tcx<'tcx> {
22 fn g<'tcx>(typer: &dyn Typer<'tcx>) {
25 fn check_static_type<'x>(tcx: &Tcx<'x>) {