I changed @str to @ast::ident. Thanks for comment!