]> git.lizzy.rs Git - rust.git/commit
Test that reborrowing contents of an `&'a mut &'b mut` pointer can only
authorNiko Matsakis <niko@alum.mit.edu>
Sat, 16 Nov 2013 22:30:45 +0000 (17:30 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 28 Nov 2013 11:43:39 +0000 (06:43 -0500)
commit09e12fa553efc933cb69d112f8f5c461c2b91492
treeba5e168aff89bde56ff8e2c430f1d85dc55911e7
parentbc4164d4c0cd232aa0c4a91b97a3e29920a311ac
Test that reborrowing contents of an `&'a mut &'b mut` pointer can only
be done for at most lifetime `'a`

Fixes #8624
src/librustc/middle/borrowck/doc.rs
src/librustc/middle/borrowck/gather_loans/lifetime.rs
src/librustc/middle/borrowck/gather_loans/mod.rs
src/librustc/middle/borrowck/gather_loans/restrictions.rs
src/librustc/middle/borrowck/mod.rs
src/test/compile-fail/regions-reborrow-from-shorter-mut-ref-mut-ref.rs [new file with mode: 0644]
src/test/compile-fail/regions-reborrow-from-shorter-mut-ref.rs [new file with mode: 0644]