# error[E0432]: unresolved import `crate::module::Item`

- **ID:** `rust/e0432-unresolved-import-crate`
- **Domain:** rust
- **Category:** module_error
- **Error Code:** `E0432`
- **Verification:** ai_generated
- **Fix Rate:** 90%

## Root Cause

The specified module or item does not exist in the crate's module tree, often due to missing `mod` declaration or incorrect path.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| rustc 1.65.0 | active | — | — |
| rustc 1.72.0 | active | — | — |
| rustc 1.80.0 | active | — | — |

## Workarounds

1. **Ensure the module is declared in the crate root: add `mod module;` to `lib.rs` or `main.rs`, and create the corresponding file `src/module.rs` or directory `src/module/`.** (95% success)
   ```
   Ensure the module is declared in the crate root: add `mod module;` to `lib.rs` or `main.rs`, and create the corresponding file `src/module.rs` or directory `src/module/`.
   ```
2. **If the item is in a submodule, use the correct relative path: `use self::submodule::Item;` or `use super::Item;`.** (85% success)
   ```
   If the item is in a submodule, use the correct relative path: `use self::submodule::Item;` or `use super::Item;`.
   ```
3. **Check for typos in the module or item name and ensure the file exists with the correct casing (case-sensitive on most platforms).** (90% success)
   ```
   Check for typos in the module or item name and ensure the file exists with the correct casing (case-sensitive on most platforms).
   ```

## Dead Ends

- **** — The module must be declared with `mod` before re-exporting; otherwise the compiler cannot find it. (70% fail)
- **** — The `crate` keyword already refers to the root; `::crate` is redundant and may be invalid. (50% fail)
- **** — Rust requires explicit `mod` declarations in `lib.rs` or `main.rs` to include modules. (80% fail)
