summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/bad_inner_doc.rs
blob: cfd166ce3ec9d244892bdd6632bd2288e3b56404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub fn main ()
{
  //! inner doc allowed
  let _x = 42;
  // { dg-error "inner doc" "" { target *-*-* } .+1 }
  //! inner doc disallowed
  mod module
  {
    /*! inner doc allowed */
    /// outer doc allowed
    // { dg-error "inner doc" "" { target *-*-* } .+1 }
    /*! but inner doc not here */
    mod x { }
  }
}