Loan to beneficiary treatment in the winding up

Hello,

I have a will trust which was created in 2012. All assets settle in the Trust (around 900k) has been from the estate. In 2016 Trustees lend all trust funds to the beneficiary.
Now Beneficiary and Trustees want to wind up trust and my question is:

  1. what will be treatment of this loan?

Many thanks for help