2022-09-17 08:04:02 +00:00
|
|
|
|
fn invalid_emoji_usages() {
|
|
|
|
|
let arrow↔️ = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
2023-07-29 00:47:21 +00:00
|
|
|
|
let planet🪐 = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
|
|
|
|
let wireless🛜 = "basic emoji"; //~ ERROR: identifiers cannot contain emoji
|
2022-09-17 08:04:02 +00:00
|
|
|
|
// FIXME
|
|
|
|
|
let key1️⃣ = "keycap sequence"; //~ ERROR: unknown start of token
|
2024-02-09 10:26:30 +00:00
|
|
|
|
//~^ WARN: identifier contains an uncommon character: '\u{fe0f}'
|
2022-09-17 08:04:02 +00: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();
|
|
|
|
|
}
|