Rollup merge of #72912 - GuillaumeGomez:add-e0755, r=estebank
Add new E0758 error code
This commit is contained in:
commit
82fd390d67
7 changed files with 50 additions and 1 deletions
1
src/test/ui/unterminated-comment.rs
Normal file
1
src/test/ui/unterminated-comment.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* //~ ERROR E0758
|
||||
9
src/test/ui/unterminated-comment.stderr
Normal file
9
src/test/ui/unterminated-comment.stderr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
error[E0758]: unterminated block comment
|
||||
--> $DIR/unterminated-comment.rs:1:1
|
||||
|
|
||||
LL | /*
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0758`.
|
||||
1
src/test/ui/unterminated-doc-comment.rs
Normal file
1
src/test/ui/unterminated-doc-comment.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
/*! //~ ERROR E0758
|
||||
9
src/test/ui/unterminated-doc-comment.stderr
Normal file
9
src/test/ui/unterminated-doc-comment.stderr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
error[E0758]: unterminated block doc-comment
|
||||
--> $DIR/unterminated-doc-comment.rs:1:1
|
||||
|
|
||||
LL | /*!
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0758`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue