about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-08 22:15:10 +0200
committerGitHub <noreply@github.com>2020-06-08 22:15:10 +0200
commit82fd390d67db9a54db2ec936217b8d4d406253dc (patch)
tree887e49aab2e6b39604ef50b73ea0bc411af31e07 /src/librustc_error_codes/error_codes
parent98bd22bda33c28027d74e3441ff76c034f0b9180 (diff)
parentfbf7d27791c524c60637ff2b7e738494e6dfaef5 (diff)
downloadrust-82fd390d67db9a54db2ec936217b8d4d406253dc.tar.gz
rust-82fd390d67db9a54db2ec936217b8d4d406253dc.zip
Rollup merge of #72912 - GuillaumeGomez:add-e0755, r=estebank
Add new E0758 error code
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0758.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0758.md b/src/librustc_error_codes/error_codes/E0758.md
new file mode 100644
index 00000000000..ddca4b3d75f
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0758.md
@@ -0,0 +1,20 @@
+A multi-line (doc-)comment is unterminated.
+
+Erroneous code example:
+
+```compile_fail,E0758
+/* I am not terminated!
+```
+
+The same goes for doc comments:
+
+```compile_fail,E0758
+/*! I am not terminated!
+```
+
+You need to end your multi-line comment with `*/` in order to fix this error:
+
+```
+/* I am terminated! */
+/*! I am also terminated! */
+```