diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs index b448c6178..2d47596be 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0003_where_pred_for.rs | |||
@@ -1,4 +1,20 @@ | |||
1 | fn test<F>() | 1 | fn for_trait<F>() |
2 | where | 2 | where |
3 | for<'a> F: Fn(&'a str) | 3 | for<'a> F: Fn(&'a str) |
4 | { } | 4 | { } |
5 | fn for_ref<F>() | ||
6 | where | ||
7 | for<'a> &'a F: Debug | ||
8 | { } | ||
9 | fn for_parens<F>() | ||
10 | where | ||
11 | for<'a> (&'a F): Fn(&'a str) | ||
12 | { } | ||
13 | fn for_slice<F>() | ||
14 | where | ||
15 | for<'a> [&'a F]: Eq | ||
16 | { } | ||
17 | fn for_qpath<T>(_t: &T) | ||
18 | where | ||
19 | for<'a> <&'a T as Baz>::Foo: Iterator | ||
20 | { } | ||