aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-01 20:25:01 +0000
committerVeetaha <[email protected]>2020-02-03 22:00:55 +0000
commita3e5663ae0206270156fbeb926a174a40abbddb0 (patch)
treee0aa3bdcec597e81f022ac1ce388d42724a92f51 /crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt
parent9367b9a2920073a3f79fdff80dcc97d727f6ce17 (diff)
ra_syntax: added tests for tokenization errors
Diffstat (limited to 'crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt')
-rw-r--r--crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt b/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt
new file mode 100644
index 000000000..89b38bfac
--- /dev/null
+++ b/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt
@@ -0,0 +1,6 @@
1LIFETIME 2 "\'1"
2WHITESPACE 1 "\n"
3LIFETIME 10 "\'1lifetime"
4WHITESPACE 1 "\n"
5> error[0; 2) token("\'1") msg(Lifetime name cannot start with a number)
6> error[3; 13) token("\'1lifetime") msg(Lifetime name cannot start with a number)