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
433 B
Plaintext
Raw Normal View History

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