We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22dab3 commit adae6aaCopy full SHA for adae6aa
tests/ui/lexer/ident_normalization.rs
@@ -0,0 +1,20 @@
1
+//@check-pass
2
+//@edition:2021
3
+
4
+#![allow(non_snake_case)]
5
6
+// Tests that identifiers are NFC-normalized as per
7
+// https://rust-lang.github.io/rfcs/2457-non-ascii-idents.html
8
9
+// Note that in the first argument of each function `K` is LATIN CAPITAL LETTER K
10
+// and in the second it is K (KELVIN SIGN).
11
12
+fn ident_nfc<K>(_p1: K, _p2: K) {}
13
14
+fn raw_ident_nfc<K>(_p1: r#K, _p2: r#K) {}
15
16
+fn lifetime_nfc<'K>(_p1: &'K str, _p2: &'K str) {}
17
18
+fn raw_lifetime_nfc<'K>(_p1: &'r#K str, _p2: &'r#K str) {}
19
20
+fn main() {}
0 commit comments