]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/multidispatch-bad.stderr
Rollup merge of #100836 - hampuslidin:migrate-attr-crate-diagnostics, r=davidtwco
[rust.git] / src / test / ui / traits / multidispatch-bad.stderr
1 error[E0308]: mismatched types
2   --> $DIR/multidispatch-bad.rs:19:17
3    |
4 LL |     test(22i32, 44i32);
5    |     ----        ^^^^^ expected `u32`, found `i32`
6    |     |
7    |     arguments to this function are incorrect
8    |
9 note: function defined here
10   --> $DIR/multidispatch-bad.rs:13:4
11    |
12 LL | fn test<T,U>(_: T, _: U)
13    |    ^^^^            ----
14 help: change the type of the numeric literal from `i32` to `u32`
15    |
16 LL |     test(22i32, 44u32);
17    |                   ~~~
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.