rust/src/test/ui/issues/issue-19098.rs
2018-12-25 21:08:33 -07:00

13 lines
220 B
Rust

// compile-pass
pub trait Handler {
fn handle(&self, _: &mut String);
}
impl<F> Handler for F where F: for<'a, 'b> Fn(&'a mut String) {
fn handle(&self, st: &mut String) {
self(st)
}
}
fn main() {}