]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1362.stderr
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[rust.git] / src / test / ui / issues / issue-1362.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-1362.rs:4:16
3    |
4 LL |   let x: u32 = 20i32;
5    |          ---   ^^^^^ expected `u32`, found `i32`
6    |          |
7    |          expected due to this
8    |
9 help: change the type of the numeric literal from `i32` to `u32`
10    |
11 LL |   let x: u32 = 20u32;
12    |                  ~~~
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.