mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 17:12:53 +00:00
12 lines
165 B
Rust
12 lines
165 B
Rust
struct Ref<'a, 'b> {
|
|
a: &'a u32,
|
|
b: &'b u32,
|
|
}
|
|
|
|
fn foo(mut x: Ref, y: Ref) {
|
|
x.b = y.b;
|
|
//~^ ERROR lifetime may not live long enough
|
|
}
|
|
|
|
fn main() {}
|