mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 00:38:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			201 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			201 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
fn gimme(x: &(u32,)) -> &u32 {
 | 
						|
    &x.0
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let x = gimme({
 | 
						|
        let v = (22,);
 | 
						|
        &v
 | 
						|
        //~^ ERROR `v` does not live long enough [E0597]
 | 
						|
    });
 | 
						|
    println!("{:?}", x);
 | 
						|
}
 |