pub static UNNAMEABLE_TYPES: &'static Lint
Expand description

The unnameable_types lint detects types for which you can get objects of that type, but cannot name the type itself.


mod m {
    pub struct S;

pub fn get_unnameable() -> m::S { m::S }



It is often expected that if you can obtain an object of type T, then you can name the type T as well, this lint attempts to enforce this rule.