Imagine I have two current-carrying wires with the current going in the same direction. The magnetic field looks like the sketch below on the left:

Now imagine I squish the wires very close together but not touching. Then, I can draw an amperian loop between both wires, which does not enclose either wire, where the integral $$\oint \vec{B}\cdot\vec{dL} \neq 0, \rightarrow I_{encl}\neq 0$$ , because the 'vertical' bit is elongated while the 'horizantal' bit is foreshortened, so my amperian loop looks like an oval, with lots of overlap with B fields circulating with the loop and less overlap with B fields anti-circulating with the loop.

That means there is an extra current which appears between the two wires!

What gives?

• I think you are making too big of an assumption based on what you think the magnetic field lines would be doing by imagining them in your head. Remember that the magnetic field lines, if drawn correctly, are drawn from the same equation that ensures amp's law is followed, so it's logically impossible for correctly drawn lines to violate amp's law. – Señor O Mar 25 at 3:48
• Your assessment is incorrect. The integral you wrote is zero. It is easier to see using the differential rather than the integral form – Dale Mar 25 at 3:53
• The more you squeeze the wires close to each other, indeed the "opposing" horizontal segments become shorter and shorter. But at the time, if you are right in the middle, the magnetic field along any of the verticals, becomes smaller and smaller. Notice that this vertical field, is a superposition of two opposing fields. At the limit, vertical field is zero and horizontal length is also zero. – npojo Mar 25 at 16:27

I have reproduced your left-hand diagram, included two extra magnetic field lines and added an Amperian loop $$ABCDA$$ which is shown in green.
I have added labels in red to show the local direction of the magnetic field $$B$$ where there are positive $$(+)$$ and negative $$(-)$$ contributions to the line integral $$\int \vec B \cdot d\vec L$$ when moving anticlockwise around the loop.