blob: 69ff29db3570a4250aa4706f833d2936f8dddac0 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/ex2b-push-no-existing-names.rs:16:12
|
15 | fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
| -------- -------- these two types are declared with different lifetimes...
16 | x.push(y); //~ ERROR lifetime mismatch
| ^ ...but data from `y` flows into `x` here
error: aborting due to previous error