How to use compat to force the use of given julia version

I try to tell that my project is compatible with julia 1.8.5 only

I added the following


and I was expecting to get an error when trying to load the module with a different julia version than the one expected,
but that is not the case, no error is thrown.
Any idea why?