summary refs log tree commit diff
path: root/src/test/ui/issues/issue-19098.rs
blob: 690fe944097c0033ccb02bcb771bcd2dce02eefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}