summaryrefslogtreecommitdiffstats
path: root/src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs')
-rw-r--r--src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs b/src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs
new file mode 100644
index 000000000..9058c4619
--- /dev/null
+++ b/src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0067_where_for_pred.rs
@@ -0,0 +1,30 @@
+fn for_trait<F>()
+where
+ for<'a> F: Fn(&'a str),
+{
+}
+fn for_ref<F>()
+where
+ for<'a> &'a F: Debug,
+{
+}
+fn for_parens<F>()
+where
+ for<'a> (&'a F): Fn(&'a str),
+{
+}
+fn for_slice<F>()
+where
+ for<'a> [&'a F]: Eq,
+{
+}
+fn for_qpath<T>(_t: &T)
+where
+ for<'a> <&'a T as Baz>::Foo: Iterator,
+{
+}
+fn for_for_fn<T>()
+where
+ for<'a> for<'b> fn(&'a T, &'b T): Copy,
+{
+}