1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// compile-flags: -Z unstable-options --check #![deny(missing_docs)] #![deny(rustdoc::all)] //! ```rust,testharness //~^ ERROR //! let x = 12; //! ``` pub fn foo() {} //~^ ERROR //~^^ ERROR /// hello //~^ ERROR /// /// ```rust,testharness /// let x = 12; /// ``` pub fn bar() {}