]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-84768.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / 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 note: associated function defined here
18   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
19    |
20 LL |     extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
21    |                           ^^^^^^^^^
22
23 error: aborting due to 2 previous errors
24
25 Some errors have detailed explanations: E0229, E0308.
26 For more information about an error, try `rustc --explain E0229`.