aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0067_where_for_pred.rs
blob: 9058c46190c4da2d68d7c75904d43efad394b93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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,
{
}