]> git.lizzy.rs Git - rust.git/commitdiff
Add tests for E0758
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 2 Jun 2020 12:16:46 +0000 (14:16 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 7 Jun 2020 12:57:57 +0000 (14:57 +0200)
src/test/ui/unterminated-comment.rs [new file with mode: 0644]
src/test/ui/unterminated-comment.stderr [new file with mode: 0644]
src/test/ui/unterminated-doc-comment.rs [new file with mode: 0644]
src/test/ui/unterminated-doc-comment.stderr [new file with mode: 0644]

diff --git a/src/test/ui/unterminated-comment.rs b/src/test/ui/unterminated-comment.rs
new file mode 100644 (file)
index 0000000..1cfdfb1
--- /dev/null
@@ -0,0 +1 @@
+/* //~ ERROR E0758
diff --git a/src/test/ui/unterminated-comment.stderr b/src/test/ui/unterminated-comment.stderr
new file mode 100644 (file)
index 0000000..c513faf
--- /dev/null
@@ -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`.
diff --git a/src/test/ui/unterminated-doc-comment.rs b/src/test/ui/unterminated-doc-comment.rs
new file mode 100644 (file)
index 0000000..82546fe
--- /dev/null
@@ -0,0 +1 @@
+/*! //~ ERROR E0758
diff --git a/src/test/ui/unterminated-doc-comment.stderr b/src/test/ui/unterminated-doc-comment.stderr
new file mode 100644 (file)
index 0000000..2d5e537
--- /dev/null
@@ -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`.