extend NLL regions to include free region indices and add outlives
This commit is contained in:
parent
7b30e8d668
commit
cafbd99c38
7 changed files with 297 additions and 113 deletions
5
src/test/compile-fail/nll/region-error.rs
Normal file
5
src/test/compile-fail/nll/region-error.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> &'b u32 {
|
||||
&*x
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue