Can a washer and dryer be next to a water heater?
There should be no problem locating two gas burning appliances close together as long as you have proper ventilation. The reason your manual says not to put two items is a closet is that they may create excessive heat when used together. As long as you have good spacing, good venting and a source of combustion air, you will be fine.