about summary refs log tree commit diff
path: root/tests/ui/issues/issue-19098.rs
blob: 97e8ca17de1ecbe53d2ac539b6b88fa76181a17c (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() {}