A fungal infection has been shown to trigger a fruit fly's own immune system to destroy brain cells leading to signs of neurodegeneration, a new study has found.