2017-11-22 16:39:46 -06:00
|
|
|
// Basic test for free regions in the NLL code. This test does not
|
|
|
|
// report an error because of the (implied) bound that `'b: 'a`.
|
2017-10-31 12:21:58 -05:00
|
|
|
|
2019-06-12 10:18:32 -05:00
|
|
|
// check-pass
|
2022-04-01 12:13:25 -05:00
|
|
|
// compile-flags:-Zverbose
|
2017-11-22 16:39:46 -06:00
|
|
|
|
|
|
|
fn foo<'a, 'b>(x: &'a &'b u32) -> &'a u32 {
|
|
|
|
&**x
|
2017-10-31 12:21:58 -05:00
|
|
|
}
|
|
|
|
|
2019-06-12 10:18:32 -05:00
|
|
|
fn main() {}
|