mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
365 B
Rust
17 lines
365 B
Rust
#![deny(confusable_idents)]
|
||
#![allow(uncommon_codepoints, non_upper_case_globals)]
|
||
|
||
const s: usize = 42;
|
||
const s_s: usize = 42;
|
||
|
||
fn main() {
|
||
let s = "rust"; //~ ERROR identifier pair considered confusable
|
||
let s_s = "rust2"; //~ ERROR identifier pair considered confusable
|
||
not_affected();
|
||
}
|
||
|
||
fn not_affected() {
|
||
let s1 = 1;
|
||
let sl = 'l';
|
||
}
|