Constraints on the structure of naked singularities in classical general relativity