]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/check-args-on-fn-err-2.stderr
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / typeck / check-args-on-fn-err-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/check-args-on-fn-err-2.rs:2:19
3    |
4 LL |     a((), 1i32 == 2u32);
5    |           ----    ^^^^ expected `i32`, found `u32`
6    |           |
7    |           expected because this is `i32`
8    |
9 help: change the type of the numeric literal from `u32` to `i32`
10    |
11 LL |     a((), 1i32 == 2i32);
12    |                    ~~~
13
14 error[E0425]: cannot find function `a` in this scope
15   --> $DIR/check-args-on-fn-err-2.rs:2:5
16    |
17 LL |     a((), 1i32 == 2u32);
18    |     ^ not found in this scope
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0308, E0425.
23 For more information about an error, try `rustc --explain E0308`.