about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCharles Lew <crlf0710@gmail.com>2019-11-23 22:37:46 +0800
committerCharles Lew <crlf0710@gmail.com>2019-12-26 13:13:01 +0800
commit541d879f710c05aaa47ffd16373d83b949ff1edb (patch)
treeccc589615184e4c9580478d7e360ec1a750c2825 /src
parent0bcddfe23a4b96d970f953b99a2e4f28ece3c0d6 (diff)
downloadrust-541d879f710c05aaa47ffd16373d83b949ff1edb.tar.gz
rust-541d879f710c05aaa47ffd16373d83b949ff1edb.zip
Add a test and bless existing test case.
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/codemap_tests/unicode_2.stderr2
-rw-r--r--src/test/ui/rfc-2457/idents-normalized.rs8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/test/ui/codemap_tests/unicode_2.stderr b/src/test/ui/codemap_tests/unicode_2.stderr
index 92634d8e5f9..c01942712d4 100644
--- a/src/test/ui/codemap_tests/unicode_2.stderr
+++ b/src/test/ui/codemap_tests/unicode_2.stderr
@@ -14,7 +14,7 @@ LL |     let _ = ("아あ", 1i42);
    |
    = help: valid widths are 8, 16, 32, 64 and 128
 
-error[E0425]: cannot find value `a̐é` in this scope
+error[E0425]: cannot find value `a̐é` in this scope
   --> $DIR/unicode_2.rs:6:13
    |
 LL |     let _ = a̐é;
diff --git a/src/test/ui/rfc-2457/idents-normalized.rs b/src/test/ui/rfc-2457/idents-normalized.rs
new file mode 100644
index 00000000000..109cec7548e
--- /dev/null
+++ b/src/test/ui/rfc-2457/idents-normalized.rs
@@ -0,0 +1,8 @@
+// check-pass
+#![feature(non_ascii_idents)]
+
+struct Résumé; // ['LATIN SMALL LETTER E WITH ACUTE']
+
+fn main() {
+    let _ = Résumé; // ['LATIN SMALL LETTER E', 'COMBINING ACUTE ACCENT']
+}