Skip to content

Commit ec81d92

Browse files
Add tests for E0755
1 parent 7788cb8 commit ec81d92

4 files changed

+20
-0
lines changed

src/test/ui/unterminated-comment.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* //~ ERROR E0758
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0758]: unterminated block comment
2+
--> $DIR/unterminated-comment.rs:1:1
3+
|
4+
LL | /*
5+
| ^^^^^^^^^^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0758`.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! //~ ERROR E0758
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0758]: unterminated block doc-comment
2+
--> $DIR/unterminated-doc-comment.rs:1:1
3+
|
4+
LL | /*!
5+
| ^^^^^^^^^^^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0758`.

0 commit comments

Comments
 (0)