Rub the rim of a cocktail glass with a lime wedge and dip into a flat bowl of sugar (2 tsp) in order to thoroughly coat the rim. Discard the lime shell. Pour the rum, raspberry liqueur, Cointreau, lemon juice and a teaspoon of sugar into a cocktail shaker half-filled with ice cubes. Shake well, strain into the cocktail glass, and serve.