I would guess the upper strut mounts are bent. I guess maybe the strut is bent, that's not uncommon with front struts in a collision.
You could swap struts from side to side. If it rubs *on the same side* then it's an issue with the suspension/body. if it rubs *on the opposite side* then it's an issue with the strut assembly.
What year/make?
Why was it all apart - for a lift, an accident, maintenance...?
Is the car rusty?