Scoop out the top layer of fat/cream from both cans of coconut milk, Discard the liquid at the bottom of the can or save it for another recipe. Do not use the liquid in the can, otherwise the filling won't set.
Add coconut milk and sugar to a small saucepan over medium heat. Heat until the sugar is dissolved, stirring often, and the mixture is just starting to simmer.
Add the chopped chocolate and salt to a large bowl. Pour the hot coconut milk mixture over the chocolate, cover with a clean towel, and let sit for 2 minutes, until the chocolate is melted. Whisk until completely smooth.
Pour the filling into the prepared crust. Top with raspberries, gently pushing them into the filling. Return to the refrigerator for 4 hours to set, then slice and serve.