]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0748.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / 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 ```