]> git.lizzy.rs Git - rust.git/commitdiff
Add tests for E0762
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 10 Jun 2020 09:55:50 +0000 (11:55 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 10 Jun 2020 09:55:50 +0000 (11:55 +0200)
src/test/ui/parser/lex-bad-char-literals-4.stderr
src/test/ui/parser/lex-bad-char-literals-7.stderr

index 8f8f806f6cf61a33e022bfc61c6d267239964bc1..fec4421c48a7c90d84e07579965085d4c9d5d6bd 100644 (file)
@@ -1,4 +1,4 @@
-error: unterminated character literal
+error[E0762]: unterminated character literal
   --> $DIR/lex-bad-char-literals-4.rs:4:5
    |
 LL |     '●
@@ -6,3 +6,4 @@ LL |     '●
 
 error: aborting due to previous error
 
+For more information about this error, try `rustc --explain E0762`.
index ee9aa869352990d480fdc87a6efe5f8b6b34e515..70ee8087b5163266424d6bb260462d49665b6e1f 100644 (file)
@@ -10,7 +10,7 @@ error: empty unicode escape (must have at least 1 hex digit)
 LL |     let _: char = '\u{}';
    |                    ^^^^
 
-error: unterminated character literal
+error[E0762]: unterminated character literal
   --> $DIR/lex-bad-char-literals-7.rs:11:13
    |
 LL |     let _ = ' hello // here's a comment
@@ -18,3 +18,4 @@ LL |     let _ = ' hello // here's a comment
 
 error: aborting due to 3 previous errors
 
+For more information about this error, try `rustc --explain E0762`.