]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/coverage/doc-examples-json.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / rustdoc-ui / coverage / doc-examples-json.rs
1 // check-pass
2 // compile-flags:-Z unstable-options --output-format json --show-coverage
3
4 // This check ensures that only one doc example is counted since they're "optional" on
5 // certain items.
6
7 /// ```
8 /// let x = 12;
9 /// ```
10 pub const Foo: u32 = 0;
11
12 /// doc
13 pub const Bar: u32 = 0;