Oh and a favorite trick is to have a mandatory warranty registration within X days from purchase and/or pay shipping one or two ways (which is easily $20 each way, depending on size and carrier)
So yah, you toss a lot of stuff at the end.
For major appliances IIRC this has been shown in court to be as much as ten years. I think at some point in the past apple caught a lot of flack for this over "Apple Care", a paid add-on to give you a longer than basic warranty, but neither the original nor the enhanced warranty were as good as the legally required warranty anyway.
I guess this probably still applies in the UK, for now, as well.
I still come across many who don't know the law, and retailers take advantage of it by coercing gullible consumers into submission. And those who are able to whisper the magic words of consumer guarantees act gets a relatively speedy resolution.
And I think it's a good thing environmentally. Because a consumer cannot really know how durable a product is, so producers try to lower prices by reducing quality. Which makes it so that one has to buy new stuff more often, leading to lots of waste. But these laws solves that, the cost of a bad quality product cannot be hidden and passed on to the consumer.