rust/crates/syntax/test_data/parser/err/0002_duplicate_shebang.rast
2020-08-12 18:30:53 +02:00

40 lines
1007 B
Plaintext

SOURCE_FILE@0..42
SHEBANG@0..20 "#!/use/bin/env rusti"
WHITESPACE@20..21 "\n"
ATTR@21..23
POUND@21..22 "#"
BANG@22..23 "!"
ERROR@23..24
SLASH@23..24 "/"
USE@24..28
USE_KW@24..27 "use"
ERROR@27..28
SLASH@27..28 "/"
MACRO_CALL@28..31
PATH@28..31
PATH_SEGMENT@28..31
NAME_REF@28..31
IDENT@28..31 "bin"
ERROR@31..32
SLASH@31..32 "/"
MACRO_CALL@32..41
PATH@32..35
PATH_SEGMENT@32..35
NAME_REF@32..35
IDENT@32..35 "env"
WHITESPACE@35..36 " "
NAME@36..41
IDENT@36..41 "rusti"
WHITESPACE@41..42 "\n"
error 23..23: expected `[`
error 23..23: expected an item
error 27..27: expected one of `*`, `::`, `{`, `self`, `super` or an identifier
error 28..28: expected SEMICOLON
error 31..31: expected BANG
error 31..31: expected `{`, `[`, `(`
error 31..31: expected SEMICOLON
error 31..31: expected an item
error 35..35: expected BANG
error 41..41: expected `{`, `[`, `(`
error 41..41: expected SEMICOLON