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
|
|
|
|
|
//~^ WARN: identifier contains uncommon Unicode codepoints
|
|
|
|
|
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();
|
|
|
|
|
}
|