Any unpaid debt on your credit report should be removed within 7 years. But I'm not sure that just waiting 25 years would cause your student loan debt to be forgiven.
Although after 25 years the creditors will likely stop harassing you over the debt.
25 years is a long time.