I am not sure if something like that is possible, but if you want compile-time warning that will show up in certain versions, you could do something like this:
#if swift(>=5.0)
var x = 1
#endif
Assuming Conditional Conformances will be part of swift 5.0.
Warning will be unrelated to what you actually want to achieve, but it will point you to the code where you want to change something once feature is unlocked. You can also add comment explaining what is going on but that, obviously, won't be part of the warning