Constraint means you consider physical properties of a system and using them, find relation between accelerations of two bodies.
The most common cases are when, in case of two or more pulleys, you say that sum of all lengths is constant, differentiate and get the relation between accelerations/velocities of two or more bodies in related motion.
another common case is when a block resting on a wedge slips down vertically,pushing the latter horizontally.