Unnamed repository; edit this file 'description' to name the repository.
internal: add erroneous test for double turbo fish
We parse `f` successfully, but that is a bug.
Aleksey Kladov 2021-09-19
parent 8009ccc · commit 8ae1f9c
-rw-r--r--crates/syntax/test_data/parser/err/0049_double_fish.rast115
-rw-r--r--crates/syntax/test_data/parser/err/0049_double_fish.rs7
2 files changed, 122 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/err/0049_double_fish.rast b/crates/syntax/test_data/parser/err/0049_double_fish.rast
new file mode 100644
index 0000000000..aced9884ac
--- /dev/null
+++ b/crates/syntax/test_data/parser/err/0049_double_fish.rast
@@ -0,0 +1,115 @@
+error 75..75: expected identifier
+error 76..76: expected SEMICOLON
+error 82..82: expected expression
+error 83..83: expected SEMICOLON
diff --git a/crates/syntax/test_data/parser/err/0049_double_fish.rs b/crates/syntax/test_data/parser/err/0049_double_fish.rs
new file mode 100644
index 0000000000..31c12bfff9
--- /dev/null
+++ b/crates/syntax/test_data/parser/err/0049_double_fish.rs
@@ -0,0 +1,7 @@
+fn f() {
+ S::<Item::<lol>::<nope>>;
+}
+
+fn g() {
+ let _: Item::<lol>::<nope> = ();
+}