mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
74f5261345
without this, the only way to create a `LitKind::Byte` is by doing `"b'a'".parse::<Literal>()`, this solves that by enabling `Literal::byte_character(b'a')`
11 lines
216 B
Rust
11 lines
216 B
Rust
// force-host
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::Literal;
|
|
|
|
fn test() {
|
|
Literal::byte_character(b'a'); //~ ERROR use of unstable library feature 'proc_macro_byte_character'
|
|
}
|