diff options
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs')
-rw-r--r-- | tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs b/tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs new file mode 100644 index 000000000..0648ce0ee --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-proc_macro_byte_character.rs @@ -0,0 +1,10 @@ +// 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' +} |