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

10 lines
220 B
Rust
Raw Normal View History

2020-04-24 20:38:31 -05:00
#![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";
}