1 error[E0308]: mismatched types
2 --> $DIR/cast-int-to-char.rs:4:16
5 | ^^^ expected `u32`, found `char`
7 help: you can cast a `char` to a `u32`, since a `char` always occupies 4 bytes
9 LL | foo::<u32>('0' as u32);
12 error[E0308]: mismatched types
13 --> $DIR/cast-int-to-char.rs:5:16
16 | ^^^ expected `i32`, found `char`
18 help: you can cast a `char` to an `i32`, since a `char` always occupies 4 bytes
20 LL | foo::<i32>('0' as i32);
23 error[E0308]: mismatched types
24 --> $DIR/cast-int-to-char.rs:6:16
27 | ^^^ expected `u64`, found `char`
29 help: you can cast a `char` to a `u64`, since a `char` always occupies 4 bytes
31 LL | foo::<u64>('0' as u64);
34 error[E0308]: mismatched types
35 --> $DIR/cast-int-to-char.rs:7:16
38 | ^^^ expected `i64`, found `char`
40 help: you can cast a `char` to an `i64`, since a `char` always occupies 4 bytes
42 LL | foo::<i64>('0' as i64);
45 error[E0308]: mismatched types
46 --> $DIR/cast-int-to-char.rs:8:17
48 LL | foo::<char>(0u32);
49 | ^^^^ expected `char`, found `u32`
51 error: aborting due to 5 previous errors
53 For more information about this error, try `rustc --explain E0308`.