]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex2b-push-no-existing-names.rs
CommitLineData
32a655c1
SL
1struct Ref<'a, T: 'a> {
2 data: &'a T
3}
a7813a04 4
32a655c1 5fn foo(x: &mut Vec<Ref<i32>>, y: Ref<i32>) {
923072b8
FG
6 x.push(y);
7 //~^ ERROR lifetime may not live long enough
54a0048b 8}
32a655c1
SL
9
10fn main() { }