This is a scenario that happened to me once in a local tourney. Fortunately I caught myself before fouling.
Playing 8ball where if your opponent scratches on the break, its ball in hand behind the line. Any other time, it's ball in hand anywhere. I don't play much 8ball but I knew the rule...