This isn't actually how it works, you have to specify the exact trait that has the associated type. Fixes #8686.