Closed
Description
When using use foo::{FooTypeA, FooTypeB};
and use foo;
together, the compiler complains that use foo;
is an unused import even when a call to something like foo::hello()
exists. Removing use foo;
gets rid of the warning and the crate compiles. However, the crate will fail to link (for example with --test
) unless the use foo;
is there.
It seems like the warning is a bug unless the intent is to have use foo::{FooTypeA, FooTypeB};
also bring in foo itself.
Here's a small crate that shows the example. This was originally found in rust-core-foundation.
Metadata
Metadata
Assignees
Labels
No labels