A common example would be an officer or detective questioning someone who is under arrest and has invoked their right to remain silent. The person then makes an incriminating statement and gets convicted in court. Then on appeal, the court rules that the continued questioning was a violation of the Fifth Amendment right to remain silent. No crime was committed because of the rights violation.
There should be extremely steep consequences for any officer of a court, TSA, etc. violating constitutional rights.