From a40b715ce1cae4db1b4c3b4c383ee7517d4202c4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 4 Feb 2018 13:39:24 +0300 Subject: G: unsafe impl & trait --- tests/data/parser/inline/0007_unsafe_trait.rs | 1 + tests/data/parser/inline/0007_unsafe_trait.txt | 11 +++++++++++ tests/data/parser/inline/0008_unsafe_impl.rs | 1 + tests/data/parser/inline/0008_unsafe_impl.txt | 11 +++++++++++ 4 files changed, 24 insertions(+) create mode 100644 tests/data/parser/inline/0007_unsafe_trait.rs create mode 100644 tests/data/parser/inline/0007_unsafe_trait.txt create mode 100644 tests/data/parser/inline/0008_unsafe_impl.rs create mode 100644 tests/data/parser/inline/0008_unsafe_impl.txt (limited to 'tests/data/parser/inline') 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 @@ +FILE@[0; 18) + TRAIT_ITEM@[0; 18) + UNSAFE_KW@[0; 6) + WHITESPACE@[6; 7) + TRAIT_KW@[7; 12) + WHITESPACE@[12; 13) + IDENT@[13; 14) "T" + WHITESPACE@[14; 15) + L_CURLY@[15; 16) + R_CURLY@[16; 17) + 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 @@ +FILE@[0; 19) + IMPL_ITEM@[0; 19) + UNSAFE_KW@[0; 6) + WHITESPACE@[6; 7) + IMPL_KW@[7; 11) + WHITESPACE@[11; 12) + IDENT@[12; 15) "Foo" + WHITESPACE@[15; 16) + L_CURLY@[16; 17) + R_CURLY@[17; 18) + WHITESPACE@[18; 19) -- cgit v1.2.3