]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lexer/lex-emoji-identifiers.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / lexer / lex-emoji-identifiers.rs
1 fn invalid_emoji_usages() {
2 let arrow↔️ = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
3 // FIXME
4 let planet🪐 = "basic emoji"; //~ ERROR: unknown start of token
5 // FIXME
6 let wireless🛜 = "basic emoji"; //~ ERROR: unknown start of token
7 // FIXME
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
13 }
14
15 fn main() {
16 invalid_emoji_usages();
17 }