2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags:-Z unstable-options --show-coverage
|
|
|
|
//@ check-pass
|
2020-08-18 06:31:40 -05:00
|
|
|
|
|
|
|
//! This test ensure that only rust code examples are counted.
|
|
|
|
|
|
|
|
/// Doc
|
|
|
|
///
|
|
|
|
/// ```
|
|
|
|
/// let x = 2;
|
|
|
|
/// ```
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
/// Doc
|
|
|
|
///
|
|
|
|
/// ```text
|
|
|
|
/// yolo
|
|
|
|
/// ```
|
|
|
|
pub trait Bar {}
|
|
|
|
|
|
|
|
/// Doc
|
|
|
|
///
|
|
|
|
/// ```ignore (just for the sake of this test)
|
|
|
|
/// let x = 2;
|
|
|
|
/// ```
|
|
|
|
pub fn foo<T: Bar, D: ::std::fmt::Debug>(a: Foo, b: u32, c: T, d: D) -> u32 {
|
|
|
|
0
|
|
|
|
}
|