Elijah was raptured without dying, a type of the last generation.
2 Kings 2:9 And it came to pass, when they were gone over, that Elijah said unto Elisha, Ask what I shall do for thee, before I be taken away from thee. And Elisha said, I pray thee, let a double portion of thy spirit be upon me.
10 And he said, Thou hast asked a hard thing: nevertheless, if thou see me when I am taken from thee, it shall be so unto thee; but if not, it shall not be so.
11 And it came to pass, as they still went on, and talked, that, behold, there appeared a chariot of fire, and horses of fire, and parted them both asunder; and Elijah went up by a whirlwind into heaven.
12 And Elisha saw it, and he cried, My father, my father, the chariot of Israel, and the horsemen thereof. And he saw him no more: …
The New Testament does not describe the future rapture in exactly the same terms, because it will be a mass rapture of living saints from all over the world, instantly following the rapture of resurrected saints from all over the world throughout history from the day of Pentecost till the day before the Rapture!
But Elijah, like Enoch before him, are two examples of the Rapture of the living, while Moses resurrected to appear with Jesus on the Mount of Transfiguration, is a type of the Rapture of the resurrected saints.
Lazarus, raised from the dead, though not raptured, was a vivid demonstration that Jesus can fulfill His promise to resurrect those who believe in Him.