compiler/rustc_error_codes/src/error_codes/E0253.md MARKDOWN 24 lines View on github.com → Search inside
1#### Note: this error code is no longer emitted by the compiler.23Attempt was made to import an unimportable type. This can happen when trying4to import a type from a trait.56Erroneous code example:78```9#![feature(import_trait_associated_functions)]1011mod foo {12    pub trait MyTrait {13        type SomeType;14    }15}1617use foo::MyTrait::SomeType;18// error: `SomeType` is not directly importable1920fn main() {}21```2223It's invalid to directly import types belonging to a trait.

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.