That's not true. Well, it's backwards anyway.
You could not-feel-pain in the sense of having incredibly high thresholds, so you could tell your leg was getting hotter, but you wouldn't feel the aching burning sensation.
To not feel anything you would need to have no/broken nerves, which would in turn mean you didn't feel pain. But that's the other way round to what you said.