]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0762.md
Create new error code E0762 for unterminated char literals
[rust.git] / src / librustc_error_codes / error_codes / E0762.md
1 A character literal wasn't ended with a quote.
2
3 Erroneous code example:
4
5 ```compile_fail,E0762
6 static C: char = '●; // error!
7 ```
8
9 To fix this error, add the missing quote:
10
11 ```
12 static C: char = '●'; // ok!
13 ```