Question: Maple not plotting my integral

Maple is plotting the first plot, but at the second, it tells me

Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct
and plots nothing. What did I do wrong?

rect := proc (t) options operator, arrow; Heaviside(t+1/2)-Heaviside(t-1/2) end proc

plot(limit(rect(t/T-1/2)*cos(t), T = 5.5), t = 0 .. 7)

plot(int(rect(t-1/2)*cos(t)*exp(-I*t), t = -infinity .. infinity))

Please Wait...