about summary refs log tree commit diff
path: root/tests/ui/higher-ranked/trait-bounds/issue-42114.rs
blob: 94acd9223732199698096ab67020c4fe81aa7abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ check-pass

fn lifetime<'a>()
where
    &'a (): 'a,
{
    /* do nothing */
}

fn doesnt_work()
where
    for<'a> &'a (): 'a,
{
    /* do nothing */
}

fn main() {
    lifetime();
    doesnt_work();
}