Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
closure-requirements
/
region-lbr1-does-outlive-lbr2-because-implied-bound.rs
blob: f0a0139ef0cdc31700b45d586a502c1209a81eca [
file
] [
log
] [
blame
] [
edit
]
// Basic test for free regions in the NLL code. This test does not
// report an error because of the (implied) bound that `'b: 'a`.
//@ check-pass
//@ compile-flags:-Zverbose-internals
fn
foo
<
'a, '
b
>(
x
:
&
'a &'
b u32
)
->
&
'
a u32
{
&**
x
}
fn
main
()
{}