]> git.lizzy.rs Git - rust.git/blob - src/test/ui/meta/expected-error-correct-rev.a.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / meta / expected-error-correct-rev.a.stderr
1 error[E0308]: mismatched types
2   --> $DIR/expected-error-correct-rev.rs:7:18
3    |
4 LL |     let x: u32 = 22_usize;
5    |            ---   ^^^^^^^^ expected `u32`, found `usize`
6    |            |
7    |            expected due to this
8    |
9 help: change the type of the numeric literal from `usize` to `u32`
10    |
11 LL |     let x: u32 = 22_u32;
12    |                     ~~~
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.