Danish youngster Holger Rune beat last year's runner-up in four sets to book his place in the quarter-finals.