2017-11-22 17:39:46 -05: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 13:21:58 -04:00
|
|
|
|
2019-06-12 18:18:32 +03:00
|
|
|
// check-pass
|
2022-04-01 13:13:25 -04:00
|
|
|
// compile-flags:-Zverbose
|
2017-11-22 17:39:46 -05:00
|
|
|
|
|
|
|
fn foo<'a, 'b>(x: &'a &'b u32) -> &'a u32 {
|
|
|
|
&**x
|
2017-10-31 13:21:58 -04:00
|
|
|
}
|
|
|
|
|
2019-06-12 18:18:32 +03:00
|
|
|
fn main() {}
|