We were just discussing with a friend how long the panels on the solar farm being constructed nearby may last, and what happens to them at end of life.
It seems 35 years is the answer:

The solar panels have an expected lifespan of around 35 years. Being made largely of glass and aluminium they are highly recyclable, so we expect them to be recycled and reused at the end of this period.