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-21 11:24:35 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-21 14:09:12 +0200
commita657be42b1a7550c071bcccfc66dee22a55a96d1 (patch)
tree9406468d4f51257dcb85ea7b43eb573797eae072 /src/librustc_error_codes/error_codes
parent228a0ed7b0cef2fbfeb781acf6c23015ccc40ba2 (diff)
Create E0765 error for unterminated double quote strings
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0765.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0765.md b/src/librustc_error_codes/error_codes/E0765.md
new file mode 100644
index 00000000000..456e3f3e9e4
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0765.md
@@ -0,0 +1,13 @@
+A double quote string (`"`) was not terminated.
+
+Erroneous code example:
+
+```compile_fail,E0765
+let s = "; // error!
+```
+
+To fix this error, add the missing double quote at the end of the string:
+
+```
+let s = ""; // ok!
+```