If you have a Pokemon with the ability Vital Spirit, then you use Rest, what will happen?
If a Pokemon with Vital Spirit uses Rest, Rest will fail.
Source