Place cucumber slices and rosemary in a cocktail shaker, and muddle to release flavors and oils. Add tequila, lime juice, orange liqueur and syrup along with ice. Cap the shaker, and shake until well chilled. Strain into a short tumbler filled with ice. Garnish with a rosemary sprig and slice of cucumber.