mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
32 lines
417 B
Rust
32 lines
417 B
Rust
// compile-flags:--test
|
|
|
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
|
|
|
/// foo
|
|
///
|
|
/// ```compile-fail,compilefail,comPile_fail
|
|
/// boo
|
|
/// ```
|
|
pub fn foo() {}
|
|
|
|
/// bar
|
|
///
|
|
/// ```should-panic,shouldpanic,shOuld_panic
|
|
/// boo
|
|
/// ```
|
|
pub fn bar() {}
|
|
|
|
/// foobar
|
|
///
|
|
/// ```no-run,norun,nO_run
|
|
/// boo
|
|
/// ```
|
|
pub fn foobar() {}
|
|
|
|
/// b
|
|
///
|
|
/// ```test-harness,testharness,tesT_harness
|
|
/// boo
|
|
/// ```
|
|
pub fn b() {}
|