1 error[E0277]: expected a `FnOnce<(&mut UIView<'_, T>,)>` closure, found `F`
2 --> $DIR/issue-100690.rs:37:23
5 | ------------- ^ expected an `FnOnce<(&mut UIView<'_, T>,)>` closure, found `F`
7 | required by a bound introduced by this call
9 = note: expected a closure with arguments `(&mut UIView<'a, T>,)`
10 found a closure with arguments `(&mut UIView<'_, T>,)`
11 note: required by a bound in `real_dispatch`
12 --> $DIR/issue-100690.rs:9:8
14 LL | fn real_dispatch<T, F>(f: F) -> Result<(), io::Error>
15 | ------------- required by a bound in this
17 LL | F: FnOnce(&mut UIView<T>) -> Result<(), io::Error> + Send + 'static,
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `real_dispatch`
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0277`.