aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser/inline
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-04 10:39:24 +0000
committerAleksey Kladov <[email protected]>2018-02-04 10:53:05 +0000
commita40b715ce1cae4db1b4c3b4c383ee7517d4202c4 (patch)
tree6d18d8c47065ea28bb4414a52855ad1c2407c81b /tests/data/parser/inline
parent5e5313a7c71d8aa873b418575f56d23b2eac6e7f (diff)
G: unsafe impl & trait
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)