Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
26
tests/rustdoc-ui/test-type.rs
Normal file
26
tests/rustdoc-ui/test-type.rs
Normal file
|
@ -0,0 +1,26 @@
|
|||
// compile-flags: --test --test-args=--test-threads=1
|
||||
// check-pass
|
||||
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
|
||||
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// let a = true;
|
||||
/// ```
|
||||
/// ```should_panic
|
||||
/// panic!()
|
||||
/// ```
|
||||
/// ```ignore (incomplete-code)
|
||||
/// fn foo() {
|
||||
/// ```
|
||||
/// ```no_run
|
||||
/// loop {
|
||||
/// println!("Hello, world");
|
||||
/// }
|
||||
/// ```
|
||||
/// fails to compile
|
||||
/// ```compile_fail
|
||||
/// let x = 5;
|
||||
/// x += 2; // shouldn't compile!
|
||||
/// ```
|
||||
|
||||
pub fn f() {}
|
Loading…
Add table
Add a link
Reference in a new issue