Skip to content

Commit 409a902

Browse files
committed
test doc comment
1 parent c6532d9 commit 409a902

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![crate_type = "lib"]
2+
#![feature(where_clause_attrs)]
3+
4+
fn f<T>()
5+
where
6+
T: Copy,
7+
/// dangling
8+
//~^ ERROR found a documentation comment that doesn't document anything
9+
{
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0585]: found a documentation comment that doesn't document anything
2+
--> $DIR/where-clause-doc-comment-without-predicate.rs:7:5
3+
|
4+
LL | /// dangling
5+
| ^^^^^^^^^^^^
6+
|
7+
= help: doc comments must come before what they document, if a comment was intended use `//`
8+
9+
error: aborting due to 1 previous error
10+
11+
For more information about this error, try `rustc --explain E0585`.

0 commit comments

Comments
 (0)