Preheat the oven to 350 degrees. Heat the butter over medium heat. Add the bacon, onion, and garlic; cook until lightly brown. Remove from pan and reserve. Combine the egg, cream, milk, stock, and rosemary; stir to incorporate thoroughly. Stir in the bacon and onion mixture. Add the bread to the mixture and let sit to absorb liquid. Grease the baking molds and add the bread pudding mixture. Cover with foil and bake for approximately 20-30 minutes or until the pudding is set. Cut into servings and serve hot.