]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0758.md
Create new error code E0758 for unterminated multi-line comments
[rust.git] / src / librustc_error_codes / error_codes / E0758.md
1 A multi-line (doc-)comment is unterminated.
2
3 Erroneous code example:
4
5 ```compile_fail,E0758
6 /* I am not terminated!
7 ```
8
9 The same goes for doc comments:
10
11 ```compile_fail,E0758
12 /*! I am not terminated!
13 ```
14
15 You need to end your multi-line comment with `*/` in order to fix this error:
16
17 ```
18 /* I am terminated! */
19 /*! I am also terminated! */
20 ```