]> git.proxmox.com Git - rustc.git/blob - tests/ui/implied-bounds/issue-100690.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / implied-bounds / issue-100690.stderr
1 error[E0277]: expected a `FnOnce<(&mut UIView<'_, T>,)>` closure, found `F`
2 --> $DIR/issue-100690.rs:37:23
3 |
4 LL | 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>,)`
11 note: required by a bound in `real_dispatch`
12 --> $DIR/issue-100690.rs:9:8
13 |
14 LL | fn real_dispatch<T, F>(f: F) -> Result<(), io::Error>
15 | ------------- required by a bound in this
16 ...
17 LL | F: FnOnce(&mut UIView<T>) -> Result<(), io::Error> + Send + 'static,
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `real_dispatch`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.