blob: 705d1bfc53e592e14abd8db2a839bb18054b5062 [file] [view]
Attempt was made to import an unimportable type. This can happen when trying
to import a type from a trait.
Erroneous code example:
```compile_fail,E0253
mod foo {
pub trait MyTrait {
type SomeType;
}
}
use foo::MyTrait::SomeType;
// error: `SomeType` is not directly importable
fn main() {}
```
It's invalid to directly import types belonging to a trait.