rust/tests/ui/keyword
Esteban Küber b61570ac11 Structured suggestion for extern crate foo when foo isn't resolved in import
When encountering a name in an import that could have come from a crate that wasn't imported, use a structured suggestion to suggest `extern crate foo;` pointing at the right place in the crate.

When encountering `_` in an import, do not suggest `extern crate _;`.

```
error[E0432]: unresolved import `spam`
  --> $DIR/import-from-missing-star-3.rs:2:9
   |
LL |     use spam::*;
   |         ^^^^ maybe a missing crate `spam`?
   |
help: consider importing the `spam` crate
   |
LL + extern crate spam;
   |
```
2024-07-29 23:49:51 +00:00
..
extern Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
keyword-false-as-identifier.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-false-as-identifier.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
keyword-self-as-identifier.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-self-as-identifier.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
keyword-self-as-type-param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-self-as-type-param.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-super-as-identifier.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-super-as-identifier.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
keyword-super.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-super.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
keyword-true-as-identifier.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword-true-as-identifier.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00