diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-06-10 11:53:57 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-06-10 11:54:09 +0200 |
| commit | 50a42fe5134fd8dbd5bc6df110654a31ee059a62 (patch) | |
| tree | 50ab8fa58bf61dd8bd2ac8af82b6c61a6d370c2f /src/librustc_error_codes/error_codes | |
| parent | bb8674837a9cc5225020e07fc3f164762bb4c11c (diff) | |
| download | rust-50a42fe5134fd8dbd5bc6df110654a31ee059a62.tar.gz rust-50a42fe5134fd8dbd5bc6df110654a31ee059a62.zip | |
Create new error code E0762 for unterminated char literals
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0762.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0762.md b/src/librustc_error_codes/error_codes/E0762.md new file mode 100644 index 00000000000..b01ded4a866 --- /dev/null +++ b/src/librustc_error_codes/error_codes/E0762.md @@ -0,0 +1,13 @@ +A character literal wasn't ended with a quote. + +Erroneous code example: + +```compile_fail,E0762 +static C: char = '●; // error! +``` + +To fix this error, add the missing quote: + +``` +static C: char = '●'; // ok! +``` |
