]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/issue-42114.rs
Rollup merge of #106805 - madsravn:master, r=compiler-errors
[rust.git] / tests / ui / higher-rank-trait-bounds / issue-42114.rs
1 // check-pass
2
3 fn lifetime<'a>()
4 where
5     &'a (): 'a,
6 {
7     /* do nothing */
8 }
9
10 fn doesnt_work()
11 where
12     for<'a> &'a (): 'a,
13 {
14     /* do nothing */
15 }
16
17 fn main() {
18     lifetime();
19     doesnt_work();
20 }