Wrong. First, there is no such thing as EU law; each member state incorporates EU directives into its own legislation however it sees fit. Second, the EU has issued a directive over a minimum consumer guarantee. Guarantees and warranties are two completely different things. Guarantees typically give a lesser service than a warranty. There is no automatic right to any warranty - any you get is a bonus, most are paid for (Applecare, Squaretrade, extended warranties etc).
The other important part is that it is a guarantee. Guarantees are only available from the retailer. You have no automatic right to a warranty, which is usually available from the manufacturer, with whom you have no contract.