“Inheritance” in Ephesians 5:5

In Ephesians 5:5, what does the word "inheritance" refer to? Does this mean that believers who go to heaven will not receive "treasure in heaven" (Matthew 6:19-21; 1 Timothy 6:17-19)? Or does this mean that any person (even a believer) who is "immoral, impure or greedy" will not get into heaven at all?

“Inheritance in the kingdom of Christ and of God” in Ephesians 5:5 refers to eternal life with God in heaven. The warning in that verse is that impenitent sinners are barred from God’s kingdom. 1 Corinthians 6:9-10 offers a similar warning.

Warnings like those in Scripture explain why God earnestly desires that the message of repentance and forgiveness of sins through Jesus be spread to all people (Luke 24:46-47; Acts 3:19-20).