diff options
| author | bors <bors@rust-lang.org> | 2020-02-29 13:59:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-29 13:59:45 +0000 |
| commit | e9bca510fe17354f876aa289bb39d347d7c69c69 (patch) | |
| tree | 40659d608c96e6f87d8d1951f983e4dfe2886135 /src/librustc_error_codes/error_codes | |
| parent | 3f9bddc7fea3ca1d49f39f22bb937a84ed32f84e (diff) | |
| parent | e2738285ea7374bc6423ea6de095ad0e8990975d (diff) | |
| download | rust-e9bca510fe17354f876aa289bb39d347d7c69c69.tar.gz rust-e9bca510fe17354f876aa289bb39d347d7c69c69.zip | |
Auto merge of #69260 - GuillaumeGomez:create-E0747-error-code, r=varkor,estebank
Create E0747 error code for unterminated raw strings Reopening of #66035. r? @estebank
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0748.md | 16 |
1 files changed, 16 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..69f1c026125 --- /dev/null +++ b/src/librustc_error_codes/error_codes/E0748.md @@ -0,0 +1,16 @@ +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 +as at the beginning. Example: + +``` +let dolphins = r#"Dolphins!"#; // One `#` at the beginning, one at the end so + // all good! +``` |
