Once you've dissolved the sugar in the water in a small pot on the stove, add in the rhubarb and rosemary. Take off the heat and let sit for 30 minutes. Store in an airtight container for up to 1 month.