Move some rustdoc-ui tests to subdirectories
This commit is contained in:
parent
572c0d553f
commit
5fa975142f
145 changed files with 40 additions and 29 deletions
31
tests/rustdoc-ui/doctest/check-attr-test.rs
Normal file
31
tests/rustdoc-ui/doctest/check-attr-test.rs
Normal file
|
@ -0,0 +1,31 @@
|
|||
// 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue