mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
433da1fc04
They pass fine.
16 lines
499 B
Makefile
16 lines
499 B
Makefile
include ../tools.mk
|
|
|
|
all:
|
|
cp foo.rs $(TMPDIR)/.foo.rs
|
|
$(RUSTC) $(TMPDIR)/.foo.rs 2>&1 \
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
|
cp foo.rs $(TMPDIR)/.foo.bar
|
|
$(RUSTC) $(TMPDIR)/.foo.bar 2>&1 \
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
|
cp foo.rs $(TMPDIR)/+foo+bar.rs
|
|
$(RUSTC) $(TMPDIR)/+foo+bar.rs 2>&1 \
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
|
cp foo.rs $(TMPDIR)/-foo.rs
|
|
$(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
|
|
| $(CGREP) 'crate names cannot start with a `-`'
|