A friend of mine failed part of his second year, albeit at the University of Liverpool, and had to do that half of the year again and then do the resits to progress. If he failed he was told he had to pick another course.
This is just an example but as the person above me said it depends on the policies of the university and the specific department.