Add test for invalid --remap-path-scope arguments
This commit is contained in:
parent
0f145634fc
commit
ee6dd56425
3 changed files with 13 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
error: argument for `--remap-path-scope` must be a comma separated list of scopes: `macro`, `diagnostics`, `documentation`, `debuginfo`, `coverage`, `object`, `all`
|
||||
|
||||
9
tests/ui/compile-flags/invalid/remap-path-scope.rs
Normal file
9
tests/ui/compile-flags/invalid/remap-path-scope.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Error on invalid --remap-path-scope arguments
|
||||
|
||||
//@ revisions: foo underscore
|
||||
//@ [foo]compile-flags: --remap-path-scope=foo
|
||||
//@ [underscore]compile-flags: --remap-path-scope=macro_object
|
||||
|
||||
//~? ERROR argument for `--remap-path-scope
|
||||
|
||||
fn main() {}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
error: argument for `--remap-path-scope` must be a comma separated list of scopes: `macro`, `diagnostics`, `documentation`, `debuginfo`, `coverage`, `object`, `all`
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue