rust/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs

10 lines
220 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#![feature(non_ascii_idents)]
#![deny(confusable_idents)]
#![allow(uncommon_codepoints, non_upper_case_globals)]
const : usize = 42; //~ ERROR identifier pair considered confusable
fn main() {
let s = "rust";
}