Kung argued that the Church’s teaching against contraception was infallible by the ordinary magisterium, and also that the teaching was wrong, and so concluded that the Church was not infallible.
It’s actually pretty difficult to argue against papal infallibility, because there are only two universally recognized instances of such teaching, neither of which is on a matter that is directly verifiable.