2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags:--test
|
2020-04-21 17:58:52 -05:00
|
|
|
|
2020-12-29 22:16:16 -06:00
|
|
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
2020-04-21 17:58:52 -05:00
|
|
|
|
|
|
|
/// 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() {}
|