4 cp foo.rs $(TMPDIR)/.foo.rs
5 $(RUSTC) $(TMPDIR)/.foo.rs 2>&1 \
6 | $(CGREP) -e "invalid character.*in crate name:"
7 cp foo.rs $(TMPDIR)/.foo.bar
8 $(RUSTC) $(TMPDIR)/.foo.bar 2>&1 \
9 | $(CGREP) -e "invalid character.*in crate name:"
10 cp foo.rs $(TMPDIR)/+foo+bar.rs
11 $(RUSTC) $(TMPDIR)/+foo+bar.rs 2>&1 \
12 | $(CGREP) -e "invalid character.*in crate name:"
13 cp foo.rs $(TMPDIR)/-foo.rs
14 $(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
15 | $(CGREP) 'crate names cannot start with a `-`'