blob: 3d05f11b69712fa4cba8fd6b1b98da040864819c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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() {}
|