1 error[E0308]: mismatched types
2 --> $DIR/const-scope.rs:1:16
4 LL | const C: i32 = 1i8;
5 | ^^^ expected `i32`, found `i8`
7 help: change the type of the numeric literal from `i8` to `i32`
9 LL | const C: i32 = 1i32;
12 error[E0308]: mismatched types
13 --> $DIR/const-scope.rs:2:15
16 | ^ expected `i8`, found `i32`
18 error[E0308]: mismatched types
19 --> $DIR/const-scope.rs:5:18
21 LL | let c: i32 = 1i8;
22 | --- ^^^ expected `i32`, found `i8`
24 | expected due to this
26 help: change the type of the numeric literal from `i8` to `i32`
28 LL | let c: i32 = 1i32;
31 error[E0308]: mismatched types
32 --> $DIR/const-scope.rs:6:17
35 | -- ^ expected `i8`, found `i32`
37 | expected due to this
39 error[E0308]: mismatched types
40 --> $DIR/const-scope.rs:10:18
42 LL | let c: i32 = 1i8;
43 | --- ^^^ expected `i32`, found `i8`
45 | expected due to this
47 help: change the type of the numeric literal from `i8` to `i32`
49 LL | let c: i32 = 1i32;
52 error[E0308]: mismatched types
53 --> $DIR/const-scope.rs:11:17
56 | -- ^ expected `i8`, found `i32`
58 | expected due to this
60 help: you can convert an `i32` to an `i8` and panic if the converted value doesn't fit
62 LL | let d: i8 = c.try_into().unwrap();
63 | ++++++++++++++++++++
65 error: aborting due to 6 previous errors
67 For more information about this error, try `rustc --explain E0308`.