Last active
August 25, 2022 09:31
-
-
Save rspencer01/e22310245bea81fd074d345604a5851a to your computer and use it in GitHub Desktop.
Unicode identifiers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(uncommon_codepoints)] | |
fn main() { | |
// Plank's constant | |
let ℏ = 1.054571817e-34; | |
// The rust mascot | |
let 🦀 = "Ferris"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: Ferris cannot be used as an identifier | |
--> foo.rs:5:9 | |
| | |
5 | let 🦀 = "Ferris"; | |
| ^^ help: try using their name instead: `ferris` | |
error: aborting due to previous error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment