about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-02 14:16:46 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-06-07 14:57:57 +0200
commitfbf7d27791c524c60637ff2b7e738494e6dfaef5 (patch)
tree1fd252f8648b65a2b296a0d59abb6ef6fcdda811 /src
parente8fb46090e938d52f2637c973e1e13886289ee3d (diff)
downloadrust-fbf7d27791c524c60637ff2b7e738494e6dfaef5.tar.gz
rust-fbf7d27791c524c60637ff2b7e738494e6dfaef5.zip
Add tests for E0758
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/unterminated-comment.rs1
-rw-r--r--src/test/ui/unterminated-comment.stderr9
-rw-r--r--src/test/ui/unterminated-doc-comment.rs1
-rw-r--r--src/test/ui/unterminated-doc-comment.stderr9
4 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/unterminated-comment.rs b/src/test/ui/unterminated-comment.rs
new file mode 100644
index 00000000000..1cfdfb1fb45
--- /dev/null
+++ b/src/test/ui/unterminated-comment.rs
@@ -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
index 00000000000..c513fafeeb3
--- /dev/null
+++ b/src/test/ui/unterminated-comment.stderr
@@ -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
index 00000000000..82546fe73da
--- /dev/null
+++ b/src/test/ui/unterminated-doc-comment.rs
@@ -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
index 00000000000..2d5e537973e
--- /dev/null
+++ b/src/test/ui/unterminated-doc-comment.stderr
@@ -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`.