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
|
@ -0,0 +1,7 @@
|
|||
// check-fail
|
||||
// compile-flags: -Z unstable-options --scrape-examples-output-path {{build-base}}/t.calls --scrape-examples-target-crate foobar
|
||||
|
||||
pub fn foo() {
|
||||
INVALID_FUNC();
|
||||
//~^ ERROR could not resolve path
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
error[E0433]: failed to resolve: could not resolve path `INVALID_FUNC`
|
||||
--> $DIR/scrape-examples-fail-if-type-error.rs:5:3
|
||||
|
|
||||
LL | INVALID_FUNC();
|
||||
| ^^^^^^^^^^^^ could not resolve path `INVALID_FUNC`
|
||||
|
|
||||
= note: this error was originally ignored because you are running `rustdoc`
|
||||
= note: try running again with `rustc` or `cargo check` and you may get a more detailed error
|
||||
|
||||
error: Compilation failed, aborting rustdoc
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0433`.
|
4
tests/rustdoc-ui/scrape-examples/scrape-examples-ice.rs
Normal file
4
tests/rustdoc-ui/scrape-examples/scrape-examples-ice.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
// compile-flags: -Z unstable-options --scrape-examples-output-path {{build-base}}/t.calls --scrape-examples-target-crate foobar
|
||||
// check-pass
|
||||
#![no_std]
|
||||
use core as _;
|
|
@ -0,0 +1 @@
|
|||
// compile-flags: -Z unstable-options --scrape-examples-target-crate foobar
|
|
@ -0,0 +1,2 @@
|
|||
error: must use --scrape-examples-output-path and --scrape-examples-target-crate together
|
||||
|
|
@ -0,0 +1 @@
|
|||
// compile-flags: -Z unstable-options --scrape-examples-output-path ex.calls
|
|
@ -0,0 +1,2 @@
|
|||
error: must use --scrape-examples-output-path and --scrape-examples-target-crate together
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue