resolve: Support imports of associated types and glob imports from traits

This commit is contained in:
Vadim Petrochenkov
2025-03-19 16:11:45 +03:00
parent db074a06fe
commit 3eee3dad5c
20 changed files with 168 additions and 113 deletions

View File

@@ -1,9 +1,13 @@
#### Note: this error code is no longer emitted by the compiler.
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
```
#![feature(import_trait_associated_functions)]
mod foo {
pub trait MyTrait {
type SomeType;