Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add E0766 error for unterminated double quote byte string
- Loading branch information
1 parent
67100f6
commit eb6d9a4
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
A double quote byte string (`b"`) was not terminated. | ||
|
||
Erroneous code example: | ||
|
||
```compile_fail,E0766 | ||
let s = b"; // error! | ||
``` | ||
|
||
To fix this error, add the missing double quote at the end of the string: | ||
|
||
``` | ||
let s = b""; // ok! | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters