What is the name of the literary technique for this?

Solution 1:

This could be called "antithesis", or the juxtaposition of opposing of contrasting ideas (Wikepedia).

In this sentence, what is being opposed is implicitly contained in the very words that formulate that opposition, but the effectiveness of this device is still a matter of whether the "knowledge of the thesis" is shared by the reader.