Trait use statements should not be mixed with imports

This failing test demonstrates a bug.