Generic range has to contain a value