There is certainly no such legislation in the UK.
https://www.legislation.gov.uk/ukpga/2015/15/section/19/note...
>For example, the statutory right may not be breached and so a consumer would not be able to obtain a remedy if, say, a very cheap kettle stopped working fully after four years, as a reasonable person might not expect a bottom of the range kettle to last that long.
> but in the EU and UK, consumers get 4-6 years of hardware warranty, on all tech products