fn parse_struct_decl_field(&mut self, parse_pub: ParsePub) -> PResult<'a, StructField> {

        let attrs = try!(self.parse_outer_attributes());

        if self.eat_keyword(keywords::Pub) {
            if parse_pub == ParsePub::No {
                let span = self.last_span;
                self.span_err(span, "`pub` is not allowed here");
            }
            return self.parse_single_struct_field(Visibility::Public, attrs);
        }

        return self.parse_single_struct_field(Visibility::Inherited, attrs);
    }
/// Parse an element of a struct definition
Parse an element of a struct definition
Parse an element of a struct definition
fn parse_struct_decl_field(&mut self, parse_pub: ParsePub) -> PResult<'a, StructField> {
        let attrs = try!(self.parse_outer_attributes());
        if self.eat_keyword(keywords::Pub) {
            if parse_pub == ParsePub::No {
                let span = self.last_span;
                self.span_err(span, "`pub` is not allowed here");
            }
            return self.parse_single_struct_field(Visibility::Public, attrs);
        }
        return self.parse_single_struct_field(Visibility::Inherited, attrs);
    }
fn parse_struct_decl_field ( & mut self , parse_pub : ParsePub ) -> PResult < ' a , StructField > { let attrs = try ! ( self parse_outer_attributes ( ) ) ; if self . eat_keyword ( keywords :: Pub ) { if parse_pub == ParsePub :: No { let span = self . last_span ; self . span_err ( span , " " ) ; } return self . parse_single_struct_field ( Visibility :: Public , attrs ) ; } return self . parse_single_struct_field ( Visibility :: Inherited , attrs ) ; }
Parse an element of a struct definition
Parse an element of a struct definition
&mut self
parse_pub
ParsePub
&mut self
parse_pub
ParsePub