2020-04-24 20:38:31 -05:00
|
|
|
|
#![feature(non_ascii_idents)]
|
|
|
|
|
#![deny(confusable_idents)]
|
|
|
|
|
#![allow(uncommon_codepoints, non_upper_case_globals)]
|
|
|
|
|
|
2020-05-09 20:10:15 -05:00
|
|
|
|
const s: usize = 42;
|
2020-04-24 20:38:31 -05:00
|
|
|
|
|
|
|
|
|
fn main() {
|
2020-05-09 20:10:15 -05:00
|
|
|
|
let s = "rust"; //~ ERROR identifier pair considered confusable
|
|
|
|
|
not_affected();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn not_affected() {
|
|
|
|
|
let s1 = 1;
|
|
|
|
|
let sl = 'l';
|
2020-04-24 20:38:31 -05:00
|
|
|
|
}
|