I have two shapes as seen below
I want to be able to trim the rectangle so that it doesn't flow into the inside of the circle. When I use Pathfinder's trim option it does not trim correctly as seen below:
I want the rectangle to wrap cleanly around the edge of the circle, but it doesn't. What am I doing wrong?