Where did you encounter such a restaurant?
I'd estimate that 99.9% of restaurants accept credit in the US based on the anecdote that I've only had to pay 1 restaurant in cash over the last decade.
How would a restaurant refuse both credit and cash? Do they make you pay before eating?