As far as I know that’s the law in every state I’ve driven in, but enforcement is pretty much nonexistent. Some states like Texas or Louisiana might have signs reminding people to stay out of the inner lanes except for passing but I’ve never heard of anyone getting a ticket over it. What’s enforcement like in the UK?

For example, the specific law in California: https://leginfo.legislature.ca.gov/faces/codes_displaySectio...