I had a male Ramoriad knowing water spout and rest and I put it in the day care with my female blastoise when the squirtle egg hatched it knew water spout AND rest on squirtles egg move chart it says it can't learn rest.
That's because if the male Pokemon knows a TM move that the baby can learn, the baby will know the TM move. Rest is compatible with Squirtle.