]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-make/weird-output-filenames/Makefile
Disallow crate names with leading hyphens
[rust.git] / src / test / run-make / weird-output-filenames / Makefile
index 5d6e629ffc1d1627dccc0be3042322042e096d0f..3d57a2263e1ef188994635c0ad1698b81b04d4db 100644 (file)
@@ -10,3 +10,6 @@ all:
        cp foo.rs $(TMPDIR)/+foo+bar
        $(RUSTC) $(TMPDIR)/+foo+bar 2>&1 \
                | grep "invalid character.*in crate name:"
+       cp foo.rs $(TMPDIR)/-foo.rs
+       $(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
+               | grep "crate name cannot start with a hyphen:"