In a saucepan, heat the milk, sugar, butter, and salt until small bubbles form. In a bowl, whisk together the eggs, then add the warm milk mixture in a slow stream, whisking constantly.
Layer the square pan with the bread. Top with the apple and pears. Pour the milk-egg mixture into the baking pan and sprinkle with the cinnamon.