mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			272 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			272 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_type="lib"]
 | |
| #![feature(c_variadic)]
 | |
| 
 | |
| pub unsafe extern "C" fn use_vararg_lifetime(
 | |
|     x: usize,
 | |
|     y: ...
 | |
| ) -> &usize { //~ ERROR missing lifetime specifier
 | |
|     &0
 | |
| }
 | |
| 
 | |
| pub unsafe extern "C" fn use_normal_arg_lifetime(x: &usize, y: ...) -> &usize { // OK
 | |
|     x
 | |
| }
 | 
