Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
15
tests/rustdoc-ui/display-output.rs
Normal file
15
tests/rustdoc-ui/display-output.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Test that `--show-output` has an effect and `allow(unused)` can be overridden.
|
||||
|
||||
// check-pass
|
||||
// edition:2018
|
||||
// compile-flags:--test --test-args=--show-output
|
||||
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
|
||||
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// #![warn(unused)]
|
||||
/// let x = 12;
|
||||
///
|
||||
/// fn foo(x: &dyn std::fmt::Display) {}
|
||||
/// ```
|
||||
pub fn foo() {}
|
Loading…
Add table
Add a link
Reference in a new issue