Shear thickening in a solution undergoing inverse melting