Combine rice, sliced sausage, corn, bay leaves, star anise, and salt to taste in a pot. Cover with 2 cups of water and bring to a simmer for 5 minutes. Cover the pot and turn the heat to low for another 15-20 minutes or until the water is fully absorbed and the rice is cooked. Remove from heat and let stand for 10 minutes before removing the lid.