rust/src/test/ui/utf8_idents.rs
Andy Russell 1b28f5aa66
improve non_camel_case_types diagnostics
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00

16 lines
379 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
fn foo<
'β, //~ ERROR non-ascii idents are not fully supported
γ //~ ERROR non-ascii idents are not fully supported
//~^ WARN type parameter `γ` should have a camel case name
>() {}
struct X {
δ: usize //~ ERROR non-ascii idents are not fully supported
}
pub fn main() {
let α = 0.00001f64; //~ ERROR non-ascii idents are not fully supported
}