A Brooklyn judge has suppressed a gun recovered from the trunk of a suspect’s car during an inventory search, citing the prosecution’s failure to establish the validity of the search.

The decision serves as a primer for police officers on how to properly, or in this case improperly, search an impounded car.