Skip to content

Commit eaff0fe

Browse files
author
Saleem Jaffer
committed
adding test
1 parent fcfc796 commit eaff0fe

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
trait User{
2+
fn test();
3+
/// empty doc
4+
//~^ ERROR found a documentation comment that doesn't document anything
5+
}
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0584]: found a documentation comment that doesn't document anything
2+
--> $DIR/doc-inside-trait-item.rs:3:5
3+
|
4+
LL | /// empty doc
5+
| ^^^^^^^^^^^^^
6+
|
7+
= help: doc comments must come before what they document, maybe a comment was intended with `//`?
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0584`.

0 commit comments

Comments
 (0)