# 错误[E0432]：未解析的导入 `crate::module::Item`

- **ID:** `rust/e0432-unresolved-import-crate`
- **领域:** rust
- **类别:** module_error
- **错误码:** `E0432`
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

指定的模块或项在 crate 的模块树中不存在，通常是由于缺少 `mod` 声明或路径错误。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| rustc 1.65.0 | active | — | — |
| rustc 1.72.0 | active | — | — |
| rustc 1.80.0 | active | — | — |

## 解决方案

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/`.
   ```
2. ```
   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).
   ```

## 无效尝试

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