]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-84768.stderr
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / ui / typeck / issue-84768.stderr
1 error[E0229]: associated type bindings are not allowed here
2   --> $DIR/issue-84768.rs:7:11
3    |
4 LL |     <F as FnOnce(&mut u8)>::call_once(f, 1)
5    |           ^^^^^^^^^^^^^^^ associated type not allowed here
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-84768.rs:7:42
9    |
10 LL |     <F as FnOnce(&mut u8)>::call_once(f, 1)
11    |     ---------------------------------    ^ expected tuple, found integer
12    |     |
13    |     arguments to this function are incorrect
14    |
15    = note: expected tuple `(&mut u8,)`
16                found type `{integer}`
17 help: the return type of this call is `{integer}` due to the type of the argument passed
18   --> $DIR/issue-84768.rs:7:5
19    |
20 LL |     <F as FnOnce(&mut u8)>::call_once(f, 1)
21    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^
22    |                                          |
23    |                                          this argument influences the return type of `FnOnce`
24 note: associated function defined here
25   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
26
27 error: aborting due to 2 previous errors
28
29 Some errors have detailed explanations: E0229, E0308.
30 For more information about an error, try `rustc --explain E0229`.