blob: f28b0776fdaf7ab2d3ab76c5c1b9275c224d2f93 [file] [log] [blame]
//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
trait Typer<'tcx> {
fn method(&self, data: &'tcx isize) -> &'tcx isize { data }
fn dummy(&self) { }
}
fn g<F>(_: F) where F: FnOnce(&dyn Typer) {}
fn h() {
g(|typer| typer.dummy())
}
fn main() { }