An important factor is who borrows what from whom.
If you borrow in your name, and lend to the trust, any compartimentalisation of the IP (or any assets held in trust) is compromised.
If you borrow in your name and buy units issued by the trust (unit or HDT), same applies.
The ATO attacked...