I saw this situation in an episode of Memphis Beat, but even though that was TV I think the question is valid and interesting. At least, to me.
In the show, the detective breaks into a house looking for…something (I don’t remember, but it was not hot pursuit or exigent circumstances or whatever). No one else is there. Going through the house, he finds a suspicious-looking lone refrigerator that is duct taped shut. He decides to open it, and finds a dead body. I don’t remember the details of the episode, but for this hypothetical, say it is the body of a homeless person, or someone that no one considered missing, let alone possibly dead.
So as I see it, as a person whose sum total of legal experience is seeing every episode of Law & Order, we have a case with two levels of illegal search (house, plus closed refrig- no ‘plain view’ exception). What do the police do? They obviously can’t leave the body there, but my understanding is the evidence can’t be used. And since the only evidence of the crime is the body (and since no one was looking for the guy, I would think there is no way to argue inevitable discovery) is there even a prosecutable case?
So law-talking people of the 'Dope, what is the reality in this hypothetical? What salient fact of law am I ignorant of?