I wonder if there is single word in English that is the version of "anachronism" with "time" replaced with "occasion". I recall that I saw such a word somewhere; but I am not really sure.
To supplement, as far as I can tell the word "anachronism" describes (roughly speaking) occurrences in a wrong time. I would like to know a word that describes occurrences in a wrong occasion. For example, one wears a suit to sleep.