rust/crates/parser/test_data/parser/err/0035_use_recover.rast
2022-03-06 08:43:18 +00:00

56 lines
1.0 KiB
Plaintext

SOURCE_FILE
USE
USE_KW "use"
WHITESPACE " "
USE_TREE
PATH
PATH
PATH_SEGMENT
NAME_REF
IDENT "foo"
COLON2 "::"
PATH_SEGMENT
NAME_REF
IDENT "bar"
SEMICOLON ";"
WHITESPACE "\n"
USE
USE_KW "use"
WHITESPACE "\n"
USE
USE_KW "use"
WHITESPACE " "
USE_TREE
PATH
PATH
PATH_SEGMENT
NAME_REF
CRATE_KW "crate"
COLON2 "::"
PATH_SEGMENT
NAME_REF
IDENT "baz"
SEMICOLON ";"
WHITESPACE "\n"
USE
USE_KW "use"
WHITESPACE "\n"
FN
FN_KW "fn"
WHITESPACE " "
NAME
IDENT "f"
PARAM_LIST
L_PAREN "("
R_PAREN ")"
WHITESPACE " "
BLOCK_EXPR
STMT_LIST
L_CURLY "{"
R_CURLY "}"
WHITESPACE "\n"
error 17: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
error 17: expected SEMICOLON
error 37: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
error 37: expected SEMICOLON