resolve: Do not suggest imports from the same module in which we are resolving
This commit is contained in:
parent
52f1847bca
commit
21fca7aae7
3 changed files with 6 additions and 11 deletions
|
|
@ -3,11 +3,6 @@ error[E0574]: expected struct, variant or union type, found type parameter `T`
|
|||
|
|
||||
LL | let t = T { i: 0 };
|
||||
| ^ not a struct, variant or union type
|
||||
|
|
||||
help: consider importing this struct instead
|
||||
|
|
||||
LL | use T;
|
||||
|
|
||||
|
||||
error[E0599]: no function or associated item named `f` found for type parameter `Foo` in the current scope
|
||||
--> $DIR/lexical-scopes.rs:10:10
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@ LL | pass_dollar_crate!();
|
|||
| ^^^^^^^^^^^^^^^^^^^^^ not found in `$crate`
|
||||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider importing this struct
|
||||
|
|
||||
LL | use ItemUse;
|
||||
|
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue