Add tests for E0758

This commit is contained in:
Guillaume Gomez 2020-06-02 14:16:46 +02:00
parent e8fb46090e
commit fbf7d27791
4 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1 @@
/* //~ ERROR E0758

View 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`.

View File

@ -0,0 +1 @@
/*! //~ ERROR E0758

View 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`.