This is what Trent wrote:
CANON X.-If any one saith, that the marriage state is to be placed above the state of virginity, or of celibacy, and that it is not better and more blessed to remain in virginity, or in celibacy, than to be united in matrimony; let him be anathema.
Well, even Jesus said in Mt. 19:12, “There are eunuchs, who have made themselves eunuchs for the kingdom of heaven’s sake.
He that is able to receive it, let him receive it.” It is a vocation and a call from the Lord, and for those who embrace it for love of God will no doubt, if they are faithful, be very pleasing to God.
We cannot look down upon those who marry, if that is how God calls them, as if they are settling for something less than perfection.
Trent’s canons were in response to the errors of the Reformation. I do not know what this particular canon addressed, but we do know, as I said before, that anyone who by his intention is not living a response to God’s love, will fail, whether in a celibate or married vocation.
For further study,
this page has a lot of good references to help you understand the present teachings of the church, which are developed much further than Trent.