Doc comments that are not attached to items do yield a parse error. There is an open issue on this point though personally I find it to be a feature and not a bug.
Niko (Sent from a cramped, unreliable keyboard) -------- Original message -------- Subject: [rust-dev] parser bug? From: John Clements <[email protected]> To: [email protected] CC: This program: pub trait MyTrait { /// doc comment with nothing after it... } ...signals the error: oiseau:/tmp clements> rustc --test bar.rs bar.rs:3:0: 3:1 error: unexpected token: `}` bar.rs:3 } ^ This looks ilke a parser bug to me, but maybe it's deliberately illegal to have a doc comment with nothing after it ? John _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
