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

error: aborting due to previous error