rust/tests/ui/proc-macro/macro-brackets.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
435 B
Plaintext
Raw Permalink Normal View History

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