1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch-byte-literal.rs:7:18
5 | -- ^^^ expected `u8`, found `char`
9 help: if you meant to write a byte literal, prefix with `b`
11 LL | let _x: u8 = b'X';
14 error[E0308]: mismatched types
15 --> $DIR/type-mismatch-byte-literal.rs:11:9
18 | --- ^^^ expected `u8`, found `char`
20 | arguments to this function are incorrect
22 note: function defined here
23 --> $DIR/type-mismatch-byte-literal.rs:4:4
25 LL | fn foo(_t: u8) {}
27 help: if you meant to write a byte literal, prefix with `b`
32 error[E0308]: mismatched types
33 --> $DIR/type-mismatch-byte-literal.rs:16:18
35 LL | let _t: u8 = '€';
36 | -- ^^^ expected `u8`, found `char`
38 | expected due to this
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0308`.