In a unanimous opinion, the court ruled that it is unconstitutional for officers to stop and frisk someone based solely on suspicion that the person is carrying a gun.