summary refs log tree commit diff
path: root/src/test/ui/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr
blob: 9591df8e8aad249277330641674ee3891653b147 (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);
   |                ^ ...but data from `y` flows into `x` here

error: aborting due to previous error