syntex generates bad code with top level struct doc comments
Closed this issue · 0 comments
erickt commented
This tracks the upstream bug rust-lang/rust#31722, where
/// blarg
struct Foo {
x: usize,
}
fn main() {}
Is expanded into:
/// blargstruct Foo {
x: usize,
}
fn main() { }