2020-12-30 04:16:16 +00:00
|
|
|
#![deny(rustdoc::invalid_codeblock_attributes)]
|
2020-04-21 22:58:52 +00:00
|
|
|
|
|
|
|
/// foo
|
|
|
|
//~^ ERROR
|
|
|
|
//~^^ ERROR
|
|
|
|
//~^^^ ERROR
|
|
|
|
///
|
|
|
|
/// ```compile-fail,compilefail,comPile_fail
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn foo() {}
|
|
|
|
|
|
|
|
/// bar
|
|
|
|
//~^ ERROR
|
|
|
|
//~^^ ERROR
|
|
|
|
//~^^^ ERROR
|
|
|
|
///
|
|
|
|
/// ```should-panic,shouldpanic,sHould_panic
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn bar() {}
|
|
|
|
|
|
|
|
/// foobar
|
|
|
|
//~^ ERROR
|
|
|
|
//~^^ ERROR
|
|
|
|
//~^^^ ERROR
|
|
|
|
///
|
|
|
|
/// ```no-run,norun,no_Run
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn foobar() {}
|
|
|
|
|
|
|
|
/// b
|
|
|
|
//~^ ERROR
|
|
|
|
//~^^ ERROR
|
|
|
|
//~^^^ ERROR
|
|
|
|
///
|
|
|
|
/// ```test-harness,testharness,teSt_harness
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn b() {}
|
2023-12-12 13:27:35 +00:00
|
|
|
|
|
|
|
/// b
|
|
|
|
//~^ ERROR
|
|
|
|
///
|
|
|
|
/// ```rust2018
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn c() {}
|
2023-12-12 18:41:09 +00:00
|
|
|
|
|
|
|
/// b
|
|
|
|
//~^ ERROR
|
|
|
|
//~| ERROR
|
|
|
|
///
|
|
|
|
/// ```rust2018 shouldpanic
|
|
|
|
/// boo
|
|
|
|
/// ```
|
|
|
|
pub fn d() {}
|