]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/lexer/lex-emoji-identifiers.rs
1 fn invalid_emoji_usages() {
2 let arrow↔️
= "basic emoji"; //~ ERROR: identifiers cannot contain emoji
4 let planet🪐
= "basic emoji"; //~ ERROR: unknown start of token
6 let wireless🛜
= "basic emoji"; //~ ERROR: unknown start of token
8 let key1️⃣
= "keycap sequence"; //~ ERROR: unknown start of token
9 //~^ WARN: identifier contains uncommon Unicode codepoints
10 let flag🇺🇳
= "flag sequence"; //~ ERROR: identifiers cannot contain emoji
11 let wales🏴
= "tag sequence"; //~ ERROR: identifiers cannot contain emoji
12 let folded🙏🏿
= "modifier sequence"; //~ ERROR: identifiers cannot contain emoji
16 invalid_emoji_usages();