summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-ranked/trait-bounds/issue-42114.rs
blob: 01515fdc9d2bff7b47479cb52d8db50a0ca79e5d (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();
}