What is this intended to test? It says "regardless of whether the feature is used", then proceeds to use the feature.

It is intentional that it warns on unused feature imports.