This could be quite a long post but . . thought I would post this up as never heard of this happening before .
Have a 3 -4 year old hotpoint WMF940 washing machine . It has run faultlessly since new . Up until now

It did not finish it's cycle & F-05 was the code on the display . I had a search around the manual & online & this seemed to point to a pump problem .
I removed the machine from the utility room , to outside the house , removed the filter & found 3 coins

Replaced filter & thought I would just run a programme by connecting the water supply & power outdide where it was sitting.
Bear in mind machine was in mid cycle , & as soon as I switched on the power the machine display would light , fault code had gone,but after a second, the main RCD tripped in my consumer unit

. The MCB for the utility circuit did not

.
Found out through researching that if the RCD trips , it is usually an earth fault or direct short

So started by disconnecting the pump feed , still the same , almost instant RCD trip . worked around the machine disconnecting items , door switch, circuit board etc. but still the same , RCD tripping .
Ended up back at where the power comes into the machine & there is some sort of power supply there & the mains goes into this & there is a L N E coming out which supplies everything in the machine . So disconnected this outward supply & switched on at the socket . . . . still tripped the RCD

Disconnected the inward supply wires L N E . . . . so all we had was a plug & length of mains cable . . it still tripped the RCD

So . . . ok it must be a mains lead fault I thinks . . . so tested cable for shorts or breakage . . but nothing showing

So cut off moulded 13 amp plug & fitted a new plug . . . . BINGO . . . all working fine .
Have never known a factory fitted moulded plug to be faulty before . So question is . . . what caused it to fail ?
Seems weird as the machine was still on & lit up showing the fault code when we first noticed it had not finished it's cycle
Any ideas ?