2018-05-22 08:01:21 -07:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/macro-brackets.rs:11:21
|
2018-05-22 08:01:21 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | id![static X: u32 = 'a';];
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^ expected `u32`, found `char`
|
2021-11-28 21:46:53 +00: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 08:01:21 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-05-22 08:01:21 -07:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|