U2 7836 then HV 5751 at Schiphol
Edinburgh → Amsterdam → Marrakesh
Timetable, Amsterdam time
22:20U2 7836 from Edinburgh at the gate
15:45HV 5751 to Marrakesh leaves the gate
17 h 25 apart on the timetable, overnight
HV 5751 leaves 17 h 25 after U2 7836 arrives on the timetable: more than half a day, so not a connection we count.