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