mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
28 lines
419 B
Rust
28 lines
419 B
Rust
// compile-flags:-Z unstable-options --show-coverage
|
|
// check-pass
|
|
|
|
//! 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
|
|
}
|