]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19098.rs
Rollup merge of #104059 - Rejyr:rustc_middle-lint-typo, r=petrochenkov
[rust.git] / src / test / ui / issues / issue-19098.rs
1 // check-pass
2 pub trait Handler {
3     fn handle(&self, _: &mut String);
4 }
5
6 impl<F> Handler for F where F: for<'a, 'b> Fn(&'a mut String) {
7     fn handle(&self, st: &mut String) {
8         self(st)
9     }
10 }
11
12 fn main() {}