U2 3301 then HV 5757 at Schiphol
Edinburgh → Amsterdam → Marrakesh
Timetable, Amsterdam time
21:05U2 3301 from Edinburgh at the gate
15:55HV 5757 to Marrakesh leaves the gate
18 h 50 apart on the timetable, overnight
HV 5757 leaves 18 h 50 after U2 3301 arrives on the timetable: more than half a day, so not a connection we count.