summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile
blob: 60d9c7c374590fd83c64ee3a03ee754ff3160cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
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