E0412name-resolution

Cannot find type in this scope

Used a type name that isn't bound — typo or missing import.

Repro

fn make() -> Strng {   // E0412: cannot find type `Strng`
    String::new()
}

Why

Name resolution failed at type position. Causes mirror E0425 (value-side): - Typo on the type name. - Missing use std::collections::HashMap;. - Type defined in a sibling module without pub use re-export. - Generic parameter shadowed by a use that resolves to a different item.

Fix

- Trust the compiler's "did you mean ...?" hint. - Add the missing use statement. - For std types, the prelude covers most basics — check whether the type is in std::collections or std::sync and import explicitly. - Re-export common types via pub use from the crate root for callers.

Patterns that solve this