2020-11-12 07:58:07 -06:00
|
|
|
// compile-flags: -Z unstable-options --check
|
|
|
|
|
2022-09-12 13:10:35 -05:00
|
|
|
#![feature(rustdoc_missing_doc_code_examples)]
|
2020-11-12 07:58:07 -06:00
|
|
|
#![deny(missing_docs)]
|
2022-12-30 19:09:19 -06:00
|
|
|
#![deny(rustdoc::missing_doc_code_examples)]
|
2021-03-05 08:50:20 -06:00
|
|
|
#![deny(rustdoc::all)]
|
2020-11-12 07:58:07 -06:00
|
|
|
|
2020-11-12 14:55:26 -06:00
|
|
|
//! ```rust,testharness
|
|
|
|
//~^ ERROR
|
|
|
|
//! let x = 12;
|
|
|
|
//! ```
|
|
|
|
|
2020-11-12 07:58:07 -06:00
|
|
|
pub fn foo() {}
|
|
|
|
//~^ ERROR
|
|
|
|
//~^^ ERROR
|
2020-11-12 14:55:26 -06:00
|
|
|
|
|
|
|
/// hello
|
|
|
|
//~^ ERROR
|
|
|
|
///
|
|
|
|
/// ```rust,testharness
|
|
|
|
/// let x = 12;
|
|
|
|
/// ```
|
|
|
|
pub fn bar() {}
|