about summary refs log tree commit diff
path: root/tests/rustdoc-ui/coverage/doc-examples-json.rs
blob: 4aa4bf23771d967348db55e968364eb766cada11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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;