Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 278 Bytes
// 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() { }
You can’t perform that action at this time.