Add explanation for E0747
This commit is contained in:
parent
bae5f3976b
commit
f439de36af
1 changed files with 14 additions and 0 deletions
14
src/librustc_error_codes/error_codes/E0748.md
Normal file
14
src/librustc_error_codes/error_codes/E0748.md
Normal 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!
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue