An example of this is found in a study published in Nature, which showed that mice with a latent infection of a Herpesvirus were less susceptible to bacterial infections.
Since most, if not all, humans are exposed to herpesviruses throughout their lifetime (especially childhood), it would be interesting to know if latent herpesvirus infections in humans also provide an enhanced resistance to bacterial infection.