You could try something slightly weird like this (just an idea, didn't test it): Iterate over the values of the enum with _items_ doing the following for every value _v_:
* create a version of the enum where _v_ is missing * construct a code block consisting of this incomplete enum type and the code you want to test * pass that block to _compiles_ If _compiles_ fails for a specific iteration, the tested code block uses _v_
