Files
rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Plaintext
Raw Normal View History

error: identifier contains a non normalized (NFKC) character: 'µ'
2021-04-03 10:35:11 +08:00
--> $DIR/lint-uncommon-codepoints.rs:3:7
2020-01-02 20:02:22 +08:00
|
LL | const µ: f64 = 0.000001;
| ^
|
= note: this character is included in the Not_NFKC Unicode general security profile
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2021-04-03 10:35:11 +08:00
--> $DIR/lint-uncommon-codepoints.rs:1:9
2020-01-02 20:02:22 +08:00
|
LL | #![deny(uncommon_codepoints)]
| ^^^^^^^^^^^^^^^^^^^
error: identifier contains a non normalized (NFKC) character: 'ij'
--> $DIR/lint-uncommon-codepoints.rs:6:4
2020-01-02 20:02:22 +08:00
|
LL | fn dijkstra() {}
| ^^^^^^^
|
= note: this character is included in the Not_NFKC Unicode general security profile
2020-01-02 20:02:22 +08:00
error: identifier contains uncommon characters: 'ㇻ', 'ㇲ', and 'ㇳ'
--> $DIR/lint-uncommon-codepoints.rs:10:9
2020-01-02 20:02:22 +08:00
|
LL | let ㇻㇲㇳ = "rust";
| ^^^^^^
|
= note: these characters are included in the Unicode general security profile
2020-01-02 20:02:22 +08:00
warning: constant `µ` should have an upper case name
--> $DIR/lint-uncommon-codepoints.rs:3:7
|
LL | const µ: f64 = 0.000001;
| ^ help: convert the identifier to upper case: `Μ`
|
= note: `#[warn(non_upper_case_globals)]` on by default
error: aborting due to 3 previous errors; 1 warning emitted
2020-01-02 20:02:22 +08:00