mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test(pkgid): bad file URL suggestion
This commit is contained in:
parent
1bbc0569b9
commit
2e3a74cc95
@ -93,6 +93,19 @@ Did you mean one of these?
|
||||
|
||||
two-ver:0.1.0
|
||||
two-ver:0.2.0
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
||||
// Bad file URL.
|
||||
p.cargo("pkgid ./Cargo.toml")
|
||||
.with_status(101)
|
||||
.with_stderr(
|
||||
"\
|
||||
error: invalid package ID specification: `./Cargo.toml`
|
||||
|
||||
Caused by:
|
||||
package ID specification `./Cargo.toml` looks like a file path, maybe try file://[..]/Cargo.toml
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
Loading…
x
Reference in New Issue
Block a user