diff options
Diffstat (limited to 'tests/data')
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0009_unsafe_auto_trait.rs b/tests/data/parser/inline/0009_unsafe_auto_trait.rs new file mode 100644 index 000000000..03d29f324 --- /dev/null +++ b/tests/data/parser/inline/0009_unsafe_auto_trait.rs | |||
@@ -0,0 +1 @@ | |||
unsafe auto trait T {} | |||
diff --git a/tests/data/parser/inline/0009_unsafe_auto_trait.txt b/tests/data/parser/inline/0009_unsafe_auto_trait.txt new file mode 100644 index 000000000..0a9a1e117 --- /dev/null +++ b/tests/data/parser/inline/0009_unsafe_auto_trait.txt | |||
@@ -0,0 +1,13 @@ | |||
1 | FILE@[0; 23) | ||
2 | TRAIT_ITEM@[0; 23) | ||
3 | UNSAFE_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | AUTO_KW@[7; 11) | ||
6 | WHITESPACE@[11; 12) | ||
7 | TRAIT_KW@[12; 17) | ||
8 | WHITESPACE@[17; 18) | ||
9 | IDENT@[18; 19) "T" | ||
10 | WHITESPACE@[19; 20) | ||
11 | L_CURLY@[20; 21) | ||
12 | R_CURLY@[21; 22) | ||
13 | WHITESPACE@[22; 23) | ||
diff --git a/tests/data/parser/inline/0010_unsafe_default_impl.rs b/tests/data/parser/inline/0010_unsafe_default_impl.rs new file mode 100644 index 000000000..9cd6c57bd --- /dev/null +++ b/tests/data/parser/inline/0010_unsafe_default_impl.rs | |||
@@ -0,0 +1 @@ | |||
unsafe default impl Foo {} | |||
diff --git a/tests/data/parser/inline/0010_unsafe_default_impl.txt b/tests/data/parser/inline/0010_unsafe_default_impl.txt new file mode 100644 index 000000000..7450381cb --- /dev/null +++ b/tests/data/parser/inline/0010_unsafe_default_impl.txt | |||
@@ -0,0 +1,13 @@ | |||
1 | FILE@[0; 27) | ||
2 | IMPL_ITEM@[0; 27) | ||
3 | UNSAFE_KW@[0; 6) | ||
4 | WHITESPACE@[6; 7) | ||
5 | DEFAULT_KW@[7; 14) | ||
6 | WHITESPACE@[14; 15) | ||
7 | IMPL_KW@[15; 19) | ||
8 | WHITESPACE@[19; 20) | ||
9 | IDENT@[20; 23) "Foo" | ||
10 | WHITESPACE@[23; 24) | ||
11 | L_CURLY@[24; 25) | ||
12 | R_CURLY@[25; 26) | ||
13 | WHITESPACE@[26; 27) | ||