{
  "id": "rust/e0432-import-conflict",
  "signature": "error[E0432]: unresolved import `crate::module::Item` -- could not find `Item` in `module`",
  "signature_zh": "错误[E0432]: 无法解析导入 `crate::module::Item` —— 在 `module` 中找不到 `Item`",
  "regex": "error\\[E0432\\]: unresolved import `.*` -- could not find `.*` in `.*`",
  "domain": "rust",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Trying to import an item (struct, function, etc.) from a module where it doesn't exist, often due to a typo, missing module declaration, or incorrect path.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试从模块中导入一个不存在的项（结构体、函数等），通常是由于拼写错误、缺少模块声明或路径不正确。",
  "versions": [
    {
      "version": "1.65.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.72.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.80.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding a 'mod' declaration in the wrong file — this creates a new module instead of importing from an existing one.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using 'use super::module::Item' when the module is in a sibling file — this may reference the wrong scope.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the item name and module path. Check if the module is declared in 'mod.rs' or 'lib.rs'. Example: if module is 'src/utils.rs', use 'use crate::utils::Item;'.",
      "success_rate": 0.95,
      "how": "Verify the item name and module path. Check if the module is declared in 'mod.rs' or 'lib.rs'. Example: if module is 'src/utils.rs', use 'use crate::utils::Item;'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the item is re-exported, ensure the re-export is public: 'pub use other_module::Item;' in the module file.",
      "success_rate": 0.9,
      "how": "If the item is re-exported, ensure the re-export is public: 'pub use other_module::Item;' in the module file.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the item name and module path. Check if the module is declared in 'mod.rs' or 'lib.rs'. Example: if module is 'src/utils.rs', use 'use crate::utils::Item;'.",
    "If the item is re-exported, ensure the re-export is public: 'pub use other_module::Item;' in the module file."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://doc.rust-lang.org/stable/error_codes/E0432.html",
  "official_doc_section": null,
  "error_code": "E0432",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-03-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}