FR 3184 then QR 3516 at Barcelona
Rabat → Barcelona → Málaga
Timetable, Barcelona time
21:05FR 3184 from Rabat at the gate
19:45QR 3516 to Málaga leaves the gate
22 h 40 apart on the timetable, overnight
QR 3516 leaves 22 h 40 after FR 3184 arrives on the timetable: more than half a day, so not a connection we count.