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