mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
12 lines
256 B
Rust
12 lines
256 B
Rust
// 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() {}
|