I was assuming the rails are strong enough to keep the train on the Earth, but I guess infinite friction from the movement and rotation of the Earth probably isn't survivable by any railway material. Hypothetically, if you had a material unaffected by gravity (train), and a material that is absolutely invincible (the rails, and they are anchored to the center of the Earth), now does it work?
I think in that case, the earth would just depart the location of the train, leaving it drifting in space.
I was assuming the rails are strong enough to keep the train on the Earth, but I guess infinite friction from the movement and rotation of the Earth probably isn't survivable by any railway material. Hypothetically, if you had a material unaffected by gravity (train), and a material that is absolutely invincible (the rails, and they are anchored to the center of the Earth), now does it work?