aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/inline
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/parser/inline')
-rw-r--r--tests/data/parser/inline/0007_unsafe_trait.rs1
-rw-r--r--tests/data/parser/inline/0007_unsafe_trait.txt11
-rw-r--r--tests/data/parser/inline/0008_unsafe_impl.rs1
-rw-r--r--tests/data/parser/inline/0008_unsafe_impl.txt11
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/data/parser/inline/0007_unsafe_trait.rs b/tests/data/parser/inline/0007_unsafe_trait.rs
new file mode 100644
index 000000000..04e021550
--- /dev/null
+++ b/tests/data/parser/inline/0007_unsafe_trait.rs
@@ -0,0 +1 @@
unsafe trait T {}
diff --git a/tests/data/parser/inline/0007_unsafe_trait.txt b/tests/data/parser/inline/0007_unsafe_trait.txt
new file mode 100644
index 000000000..d6f6a4cfa
--- /dev/null
+++ b/tests/data/parser/inline/0007_unsafe_trait.txt
@@ -0,0 +1,11 @@
1FILE@[0; 18)
2 TRAIT_ITEM@[0; 18)
3 UNSAFE_KW@[0; 6)
4 WHITESPACE@[6; 7)
5 TRAIT_KW@[7; 12)
6 WHITESPACE@[12; 13)
7 IDENT@[13; 14) "T"
8 WHITESPACE@[14; 15)
9 L_CURLY@[15; 16)
10 R_CURLY@[16; 17)
11 WHITESPACE@[17; 18)
diff --git a/tests/data/parser/inline/0008_unsafe_impl.rs b/tests/data/parser/inline/0008_unsafe_impl.rs
new file mode 100644
index 000000000..41055f41d
--- /dev/null
+++ b/tests/data/parser/inline/0008_unsafe_impl.rs
@@ -0,0 +1 @@
unsafe impl Foo {}
diff --git a/tests/data/parser/inline/0008_unsafe_impl.txt b/tests/data/parser/inline/0008_unsafe_impl.txt
new file mode 100644
index 000000000..a88a447cb
--- /dev/null
+++ b/tests/data/parser/inline/0008_unsafe_impl.txt
@@ -0,0 +1,11 @@
1FILE@[0; 19)
2 IMPL_ITEM@[0; 19)
3 UNSAFE_KW@[0; 6)
4 WHITESPACE@[6; 7)
5 IMPL_KW@[7; 11)
6 WHITESPACE@[11; 12)
7 IDENT@[12; 15) "Foo"
8 WHITESPACE@[15; 16)
9 L_CURLY@[16; 17)
10 R_CURLY@[17; 18)
11 WHITESPACE@[18; 19)