FR 10 then I2 1857 at Madrid
Dublin → Madrid → Marrakesh
Timetable, Madrid time
20:00FR 10 from Dublin at the gate
19:30I2 1857 to Marrakesh leaves the gate
23 h 30 apart on the timetable, overnight
I2 1857 leaves 23 h 30 after FR 10 arrives on the timetable: more than half a day, so not a connection we count.