]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/where_clauses_in_functions.rs
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / where_clauses_in_functions.rs
1 #![allow(dead_code)]
2
3 fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32)
4 where
5     'a: 'b,
6 {
7     (x, y)
8 }
9
10 fn bar<'a, 'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) {
11     foo(x, y)
12     //~^ ERROR lifetime may not live long enough
13 }
14
15 fn main() {}