While biking the Great Allegheny Passage recently, a CSX freight train happened to pass by while riding In downtown McKeesport, Pennsylvania.
The trail is very close to the tracks, certainly less than five feet away, but I certainly didn't feel like I was in any danger.