rust/tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile
2023-01-11 09:32:08 +00:00

12 lines
292 B
Makefile

include ../tools.mk
# Test that -A warnings makes the 'empty trait list for derive' warning go away
OUT=$(shell $(RUSTC) foo.rs -A warnings 2>&1 | grep "warning" )
all: foo
test -z '$(OUT)'
# This is just to make sure the above command actually succeeds
foo:
$(RUSTC) foo.rs -A warnings