2018-05-22 10:01:21 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-brackets.rs:11:21
|
2018-05-22 10:01:21 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | id![static X: u32 = 'a';];
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^ expected `u32`, found `char`
|
2021-11-28 15:46:53 -06:00
|
|
|
|
|
|
|
|
help: you can cast a `char` to a `u32`, since a `char` always occupies 4 bytes
|
|
|
|
|
|
|
|
|
LL | id![static X: u32 = 'a' as u32;];
|
|
|
|
| ++++++
|
2018-05-22 10:01:21 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|