rust/tests/rustdoc-ui/coverage/doc-examples-json.rs

14 lines
284 B
Rust
Raw Normal View History

2020-08-20 14:15:02 -05:00
// 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;