If the owner or occupant of any land adjoining any railroad or canal has, since June 10, 1831, taken into his enclosure any part of the land belonging to such railroad or canal, as located and established, or since that time has erected any building upon any such land; or, if any person takes into his enclosure any part of land belonging to a railway company within the limits of which such company has located an electric railway, or erects any building upon any part of such land, no adverse possession of the land so enclosed or built upon shall confer any title thereto.
(1949 Rev., S. 7110.)
Railroad may abandon right-of-way. 86 C. 275; 88 C. 515.