rust/tests/ui/issues/issue-19098.rs
2023-01-11 09:32:08 +00:00

13 lines
218 B
Rust

// check-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() {}