Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
41
tests/rustdoc-ui/check-attr.rs
Normal file
41
tests/rustdoc-ui/check-attr.rs
Normal file
|
@ -0,0 +1,41 @@
|
|||
#![deny(rustdoc::invalid_codeblock_attributes)]
|
||||
|
||||
/// 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue