about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-02-18 14:50:40 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-02-28 16:01:04 +0100
commitf439de36afa8e70d99557a0563341a9211a14096 (patch)
treed6656732e9f36a597a063482ce5ac7d0bc4f41f9
parentbae5f3976b21f33d9d15ed7da04d3fb9b1878bdc (diff)
downloadrust-f439de36afa8e70d99557a0563341a9211a14096.tar.gz
rust-f439de36afa8e70d99557a0563341a9211a14096.zip
Add explanation for E0747
-rw-r--r--src/librustc_error_codes/error_codes/E0748.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0748.md b/src/librustc_error_codes/error_codes/E0748.md
new file mode 100644
index 00000000000..7743c722eee
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0748.md
@@ -0,0 +1,14 @@
+A raw string isn't correctly terminated because the trailing `#` count doesn't
+match its leading `#` count.
+
+Erroneous code example:
+
+```compile_fail,E0748
+let dolphins = r##"Dolphins!"#; // error!
+```
+To terminate a raw string, you have to have the same number of `#` at the end
+than at the beginning. Example:
+```
+let dolphins = r#"Dolphins!"#; // one `#` at the beginning, one at the end so
+                               // all good!
+```