mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-01 15:54:04 +00:00
14 lines
286 B
Rust
14 lines
286 B
Rust
//@ check-pass
|
|
//@ compile-flags:-Z unstable-options --output-format json --show-coverage
|
|
|
|
// This check ensures that only one doc example is counted since they're "optional" on
|
|
// certain items.
|
|
|
|
/// ```
|
|
/// let x = 12;
|
|
/// ```
|
|
pub const Foo: u32 = 0;
|
|
|
|
/// doc
|
|
pub const Bar: u32 = 0;
|