'Could not find that structure nearby.' (or whatever the command says when it fails)
'The nearest <structure> is [coords].'
The /locate command returns coordinates of structures even in worlds when structure generation is disabled.
- Create a new world where generate-structures=false.
- Use /locate <structure> and observe the output.
- Click the coordinates to travel there.
- There is no structure because structure generation is disabled.
- Command should output there is no structure nearby.