]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/dont-point-return-on-E0308.stderr
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / mismatched_types / dont-point-return-on-E0308.stderr
1 error[E0308]: mismatched types
2   --> $DIR/dont-point-return-on-E0308.rs:11:11
3    |
4 LL |         f(());
5    |         - ^^
6    |         | |
7    |         | expected `&()`, found `()`
8    |         | help: consider borrowing here: `&()`
9    |         arguments to this function are incorrect
10    |
11 note: function defined here
12   --> $DIR/dont-point-return-on-E0308.rs:3:10
13    |
14 LL | async fn f(_: &()) {}
15    |          ^ ------
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.