Car wax is a flammable substance, and the dryer could cause the rags to catch fire. Additionally, the wax could damage the dryer's heating element.
If you need to dry rags with car wax, you should hang them up to air dry.