Found in the Lot department of southern France.
I think this is some sort of soldier fly larva (family Stratiomyidae). That would explain lack of legs. There are thousands of species world wide, with both aquatic and terrestrial larvae, so it might be possible to narrow it down a bit more.
Image from bugguide.net for comparison:
Thanks to @bli for reminding me of dipteran larvae!