mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Add tests for E0758
This commit is contained in:
parent
e8fb46090e
commit
fbf7d27791
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…
Reference in New Issue
Block a user