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

error: aborting due to previous error