mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
23 lines
330 B
Rust
23 lines
330 B
Rust
// compile-flags: -Z unstable-options --check
|
|
|
|
#![feature(rustdoc_missing_doc_code_examples)]
|
|
#![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() {}
|