Skip to content

Commit adae6aa

Browse files
committed
Add test for nfc-normalization of idents
1 parent e22dab3 commit adae6aa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: ) {}
13+
14+
fn raw_ident_nfc<K>(_p1: r#K, _p2: r#K) {}
15+
16+
fn lifetime_nfc<'K>(_p1: &'K str, _p2: &' str) {}
17+
18+
fn raw_lifetime_nfc<'K>(_p1: &'r#K str, _p2: &'r#K str) {}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)