Yes, Germany.
They have two types of pedestrian crosswalks. One of them is the standard “zebra crossing”, where the whole crosswalk is maked with white stripes and there pedestrians have right of way.
The other one just has just dashes at the sides of the crossing, and here pedestrians have no right of way. But if these are present (same with the other type) pedestrians are not allowed to cross the road for iirc 50 meters left or right of the crossing. So it essentially turns the road left and right of the crossing into a “no crossing allowed” zone.
They do this at traffic lights, so that if the light doesn’t work pedestrians don’t have right of way. And sometimes they just do it to annoy pedestrians, because it’s car-country Germany and fuck pedestrians or something.