Answer:
Simile
Step-by-step explanation:
Simile definition: a figure of speech involving the comparison of one thing with another thing of a different kind, used to make a description more emphatic or vivid (examples: as brave as a lion, crazy like a fox ). Similes compare things using the words "like" and "as."
The fence posts in the moonlight are being compared to bones using the word "like."