2022-09-17 03:04:02 -05:00
|
|
|
|
fn invalid_emoji_usages() {
|
|
|
|
|
let arrow↔️ = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
2023-07-28 19:47:21 -05:00
|
|
|
|
let planet🪐 = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
|
|
|
|
let wireless🛜 = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
2022-09-17 03:04:02 -05:00
|
|
|
|
// FIXME
|
|
|
|
|
let key1️⃣ = "keycap sequence"; //~ ERROR: unknown start of token
|
2024-01-23 07:16:24 -06:00
|
|
|
|
//~^ WARN: identifier contains an uncommon Unicode codepoint
|
2022-09-17 03:04:02 -05:00
|
|
|
|
let flag🇺🇳 = "flag sequence"; //~ ERROR: identifiers cannot contain emoji
|
|
|
|
|
let wales🏴 = "tag sequence"; //~ ERROR: identifiers cannot contain emoji
|
|
|
|
|
let folded🙏🏿 = "modifier sequence"; //~ ERROR: identifiers cannot contain emoji
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
invalid_emoji_usages();
|
|
|
|
|
}
|