diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-10 21:37:21 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-10 22:26:19 +0300 |
| commit | 0bd5dd6449c9db734bd2d1700ea4b50e22b220be (patch) | |
| tree | 9d4df601110df7da605e21db7ccbabcaf4fc6135 /src/test | |
| parent | fd8e175c4e39537b16beb40c704a17fcf9796852 (diff) | |
| download | rust-0bd5dd6449c9db734bd2d1700ea4b50e22b220be.tar.gz rust-0bd5dd6449c9db734bd2d1700ea4b50e22b220be.zip | |
Improve incomplete unicode escape reporting
This improves diagnostic messages when \u escape is used incorrectly and { is
missing. Instead of saying “unknown character escape: u”, it will now report
that unicode escape sequence is incomplete and suggest what the correct syntax
is.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/parse-fail/issue-23620-invalid-escapes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/parse-fail/issue-23620-invalid-escapes.rs b/src/test/parse-fail/issue-23620-invalid-escapes.rs index 7930ea75bf5..98db3efe114 100644 --- a/src/test/parse-fail/issue-23620-invalid-escapes.rs +++ b/src/test/parse-fail/issue-23620-invalid-escapes.rs @@ -41,5 +41,5 @@ fn main() { //~^ ERROR illegal unicode character escape //~^^ ERROR illegal character in numeric character escape: //~^^^ ERROR form of character escape may only be used with characters in the range [\x00-\x7f] - //~^^^^ ERROR unknown character escape: u + //~^^^^ ERROR incomplete unicode escape sequence } |
