EC 7152 then FR 2239 at Barcelona
Milan → Barcelona → Marrakesh
Timetable, Barcelona time
16:10EC 7152 from Milan at the gate
06:40FR 2239 to Marrakesh leaves the gate
14 h 30 apart on the timetable, overnight
FR 2239 leaves 14 h 30 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.