Description
If I use document comment that doesn't document anything in function,
fn test(){
println!("Hello world");
///
}
it will raise error:
error[E0585]: found a documentation comment that doesn't document anything.
But if I use this in trait, the error confuses me.
trait User{
fn test();
///
}
fn main() {
println!("Hello world");
}
error: expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`, found `}`
--> src/main.rs:4:1
|
3 | ///
| - expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe` here
4 | }
| ^ unexpected token