1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/// struct Foo comment struct Foo { /// Foo comment /// fn some_func(a: u32, /// b: u32) {} A: u32, } mod Bar { test! { /// struct inside macro struct SuperFoo; sub_test! { /// and another one! struct FooFoo { x: u32, } } } }