Thermal expansion can become a problem for trains because it can cause the rails to buckle. On the rails they will have monitors so that if it does get abnormally high in temperature they can be warned and trains could be told to slow down to reduce the heat of friction. Sometimes on the inner parts of the rails they will be painted white to reflect the sun's hot rays so that it won't cause buckling.