summary refs log tree commit diff
path: root/src/test/ui/lifetime-errors/ex2e-push-inference-variable-3.nll.stderr
blob: 351966902a4fba657ef3ab0a48569e12f1d0810a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
warning: not reporting region error due to nll
  --> $DIR/ex2e-push-inference-variable-3.rs:17:13
   |
LL |     let b = Ref { data: y.data };
   |             ^^^

error[E0623]: lifetime mismatch
  --> $DIR/ex2e-push-inference-variable-3.rs:16:9
   |
LL | fn foo<'a, 'b, 'c>(x: &'a mut Vec<Ref<'b, i32>>, y: Ref<'c, i32>) {
   |                                   ------------      ------------ these two types are declared with different lifetimes...
LL |     let a: &mut Vec<Ref<i32>> = x; //~ ERROR lifetime mismatch
   |         ^ ...but data from `y` flows into `x` here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0623`.