Empty pupal case

Observation - Empty pupal case - UK and Ireland. Description: Found this pupal case attached to a beech tree in mature decidous woodland. Its about 25mm long and 8mm wide. What came out of it?

Found this pupal case attached to a beech tree in mature decidous woodland. Its about 25mm long and 8mm wide. What came out of it?