Debian Codegraph @

gcc/testsuite/rust/compile/bad_inner_doc.rs

raw
1 pub fn main ()
2 {
3 //! inner doc allowed
4 let _x = 42;
5 // { dg-error "expected outer doc comment, inner doc" "" { target *-*-* } .+1 }
6 //! inner doc disallowed
7 mod module
8 {
9 /*! inner doc allowed */
10 /// outer doc allowed
11 // { dg-error "expected outer doc comment, inner doc" "" { target *-*-* } .+1 }
12 /*! but inner doc not here */
13 mod x { }
14 }
15 }