2019-06-15 22:22:07 -05:00
|
|
|
|
#![deny(non_ascii_idents)]
|
|
|
|
|
|
|
|
|
|
const חלודה: usize = 2; //~ ERROR identifier contains non-ASCII characters
|
|
|
|
|
|
|
|
|
|
fn coöperation() {} //~ ERROR identifier contains non-ASCII characters
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let naïveté = 2; //~ ERROR identifier contains non-ASCII characters
|
2020-05-09 20:10:15 -05:00
|
|
|
|
|
|
|
|
|
// using the same identifier the second time won't trigger the lint.
|
|
|
|
|
println!("{}", naïveté);
|
2019-06-15 22:22:07 -05:00
|
|
|
|
}
|