]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / nll / closure-requirements / region-lbr1-does-not-outlive-ebr2.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/region-lbr1-does-not-outlive-ebr2.rs:19:5
3    |
4 LL |     &*x
5    |     ^^^
6
7 error[E0623]: lifetime mismatch
8   --> $DIR/region-lbr1-does-not-outlive-ebr2.rs:19:5
9    |
10 LL | fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> &'b u32 {
11    |                   -------                 -------
12    |                   |
13    |                   this parameter and the return type are declared with different lifetimes...
14 LL |     &*x
15    |     ^^^ ...but data from `x` is returned here
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0623`.