Cedar is very rot resistant, and superior to pine in several ways. If PT pine was not a lot cheaper that cedar, it would not be used, IMO.
As for Chestnut, I do not know how long it resists rot, if it is used for a deck, but if used for the walls of a roofed barn, I am pretty sure it will last...