]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-both-are-structs-earlybound-regions.rs
1 struct Ref<'a> {
2 x: &'a u32,
3 }
4
5 fn foo<'a, 'b>(mut x: Vec<Ref<'a>>, y: Ref<'b>)
6 where &'a (): Sized,
7 &'b u32: Sized
8 {
9 x.push(y);
10 //~^ ERROR lifetime may not live long enough
11 }
12
13 fn main() {}