]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/macro-brackets.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / proc-macro / macro-brackets.stderr
1 error[E0308]: mismatched types
2   --> $DIR/macro-brackets.rs:11:21
3    |
4 LL | id![static X: u32 = 'a';];
5    |                     ^^^ expected `u32`, found `char`
6    |
7 help: you can cast a `char` to a `u32`, since a `char` always occupies 4 bytes
8    |
9 LL | id![static X: u32 = 'a' as u32;];
10    |                         ++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.