Add tests for E0758
This commit is contained in:
parent
e8fb46090e
commit
fbf7d27791
4 changed files with 20 additions and 0 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