about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-10 11:53:57 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-10 11:54:09 +0200
commit50a42fe5134fd8dbd5bc6df110654a31ee059a62 (patch)
tree50ab8fa58bf61dd8bd2ac8af82b6c61a6d370c2f /src/librustc_error_codes/error_codes
parentbb8674837a9cc5225020e07fc3f164762bb4c11c (diff)
downloadrust-50a42fe5134fd8dbd5bc6df110654a31ee059a62.tar.gz
rust-50a42fe5134fd8dbd5bc6df110654a31ee059a62.zip
Create new error code E0762 for unterminated char literals
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0762.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0762.md b/src/librustc_error_codes/error_codes/E0762.md
new file mode 100644
index 00000000000..b01ded4a866
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0762.md
@@ -0,0 +1,13 @@
+A character literal wasn't ended with a quote.
+
+Erroneous code example:
+
+```compile_fail,E0762
+static C: char = '●; // error!
+```
+
+To fix this error, add the missing quote:
+
+```
+static C: char = '●'; // ok!
+```