summary refs log tree commit diff
path: root/src/test/ui/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr
blob: 43ca5cd603f137b05c9efd99f334dec5aae1a94b (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0623]: lifetime mismatch
  --> $DIR/ex3-both-anon-regions-using-trait-objects.rs:11:10
   |
LL | fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
   |                 ---  --- these two types are declared with different lifetimes...
LL |   y.push(z); //~ ERROR lifetime mismatch
   |          ^ ...but data from `z` flows into `y` here

error: aborting due to previous error

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