mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
16 lines
363 B
Rust
16 lines
363 B
Rust
![]() |
// Test to ensure that it generates expected output for `--output-format=doctest` command-line
|
||
|
// flag.
|
||
|
|
||
|
//@ compile-flags:-Z unstable-options --output-format=doctest
|
||
|
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
|
||
|
//@ check-pass
|
||
|
|
||
|
//! ```ignore (checking attributes)
|
||
|
//! let x = 12;
|
||
|
//! let y = 14;
|
||
|
//! ```
|
||
|
//!
|
||
|
//! ```edition2018,compile_fail
|
||
|
//! let
|
||
|
//! ```
|