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

12 lines
411 B
Rust
Raw Normal View History

2020-01-02 06:02:22 -06:00
#![feature(non_ascii_idents)]
#![deny(uncommon_codepoints)]
const µ: f64 = 0.000001; //~ ERROR identifier contains uncommon Unicode codepoints
fn dijkstra() {} //~ ERROR identifier contains uncommon Unicode codepoints
fn main() {
let = "rust"; //~ ERROR identifier contains uncommon Unicode codepoints
println!("{}", ); //~ ERROR identifier contains uncommon Unicode codepoints
}