]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/ex3-both-anon-regions-2.nll.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-2.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/ex3-both-anon-regions-2.rs:12:10
3    |
4 LL |     *v = x; //~ ERROR lifetime mismatch
5    |          ^
6
7 error[E0623]: lifetime mismatch
8   --> $DIR/ex3-both-anon-regions-2.rs:12:5
9    |
10 LL | fn foo(&mut (ref mut v, w): &mut (&u8, &u8), x: &u8) {
11    |                                   ---           --- these two types are declared with different lifetimes...
12 LL |     *v = x; //~ ERROR lifetime mismatch
13    |     ^^^^^^ ...but data from `x` flows here
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0623`.