diff options
Diffstat (limited to 'src/tools/cargo/tests/testsuite/cargo_init/reserved_name/stderr.log')
-rw-r--r-- | src/tools/cargo/tests/testsuite/cargo_init/reserved_name/stderr.log | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/cargo/tests/testsuite/cargo_init/reserved_name/stderr.log b/src/tools/cargo/tests/testsuite/cargo_init/reserved_name/stderr.log new file mode 100644 index 000000000..748971bdf --- /dev/null +++ b/src/tools/cargo/tests/testsuite/cargo_init/reserved_name/stderr.log @@ -0,0 +1,8 @@ +error: the name `test` cannot be used as a package name, it conflicts with Rust's built-in test library +If you need a package name to not match the directory name, consider using --name flag. +If you need a binary with the name "test", use a valid package name, and set the binary name to be different from the package. This can be done by setting the binary filename to `src/bin/test.rs` or change the name in Cargo.toml with: + + [[bin]] + name = "test" + path = "src/main.rs" + |