EC 3749 then FR 2239 at Barcelona
Milan → Barcelona → Marrakesh
Timetable, Barcelona time
08:40EC 3749 from Milan at the gate
06:45FR 2239 to Marrakesh leaves the gate
22 h 05 apart on the timetable, overnight
FR 2239 leaves 22 h 05 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.