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