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