{"ast_node_type":"function","tokens":[{"end":55,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn expected_in_unit_struct_pat(&self) -> bool {
    /// Returns whether such a resolved path can occur in a unit struct/variant pattern
        matches!(self, Res::Def(DefKind::Ctor(_, CtorKind::Const), _) | Res::SelfCtor(..))