Investors & landlords

Interest and dividend income generated within the retirement plan is not taxed. You only have a tax liability when you withdraw from the plan. 

Some states do tax such income, however, when generated within an HSA.