]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0748.md
New upstream version 1.43.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0748.md
1 A raw string isn't correctly terminated because the trailing `#` count doesn't
2 match its leading `#` count.
3
4 Erroneous code example:
5
6 ```compile_fail,E0748
7 let dolphins = r##"Dolphins!"#; // error!
8 ```
9
10 To terminate a raw string, you have to have the same number of `#` at the end
11 as at the beginning. Example:
12
13 ```
14 let dolphins = r#"Dolphins!"#; // One `#` at the beginning, one at the end so
15 // all good!
16 ```