Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
25
tests/rustdoc/codeblock-title.rs
Normal file
25
tests/rustdoc/codeblock-title.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/fn.bar.html '//*[@class="example-wrap compile_fail"]/*[@class="tooltip"]' "ⓘ"
|
||||
// @has foo/fn.bar.html '//*[@class="example-wrap ignore"]/*[@class="tooltip"]' "ⓘ"
|
||||
// @has foo/fn.bar.html '//*[@class="example-wrap should_panic"]/*[@class="tooltip"]' "ⓘ"
|
||||
// @has foo/fn.bar.html '//*[@data-edition="2018"]' "ⓘ"
|
||||
|
||||
/// foo
|
||||
///
|
||||
/// ```compile_fail
|
||||
/// foo();
|
||||
/// ```
|
||||
///
|
||||
/// ```ignore (tidy)
|
||||
/// goo();
|
||||
/// ```
|
||||
///
|
||||
/// ```should_panic
|
||||
/// hoo();
|
||||
/// ```
|
||||
///
|
||||
/// ```edition2018
|
||||
/// let x = 0;
|
||||
/// ```
|
||||
pub fn bar() -> usize { 2 }
|
Loading…
Add table
Add a link
Reference in a new issue