Open Super-Pizza opened 1 year ago
Rust follows Unicode Annex 31 for what it considers valid identifiers, so changing this is out of scope for Rust. A better error message for this is welcome though :)
Extra fun fact: This character is actually (ab)used in crates in the ecosystem https://docs.rs/macro-vis/0.1.1/macro_vis/
I'm proposing
help: Unicode character 'ǃ' (Latin letter retroflex click) looks like '!' (Exclamation mark), but it is not
help: Unicode character 'ǀ' (Latin letter dental click) looks like '|' (Vertical line), but it is not
Can someone do a PR for this?
here's my reasoning:
errors with the wrong message: