1
Fork 0

Add explanation for E0747

This commit is contained in:
Guillaume Gomez 2020-02-18 14:50:40 +01:00
parent bae5f3976b
commit f439de36af

View file

@ -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!
```