Closed
Description
trait_comments.rs
trait A {
fn a(); /// doc comment
}
fn main() {}
error:
$ rustc trait_comments.rs
trait_comments.rs:3:0: 3:1 error: unexpected token: `}`
trait_comments.rs:3 }
It seems to only be triple slashes that cause it - // comment
compiles fine.
Edit: Interestingly it seems that this compiles fine:
trait A {
fn a(); /// comment
fn b(); // comment
}
fn main() {}