Been a long time since I umped, but I’m pretty sure that the rubber is considered part of the ground, so the situation you described would not be an out.
You may be thinking about a ball hitting a base that is caught on the fly; that is an out (home plate is the exception, that is also part of the ground).