How is tax relief calculated on pension contributions if you have no earnings?

If you enter a pension contribution when you have no earned income, there will be no tax relief given on the contributions.