mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			195 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			195 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![feature(ffi_const, ffi_pure)]
 | 
						|
 | 
						|
extern "C" {
 | 
						|
    #[ffi_pure] //~ ERROR `#[ffi_const]` function cannot be `#[ffi_pure]`
 | 
						|
    #[ffi_const]
 | 
						|
    pub fn baz();
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    unsafe { baz() };
 | 
						|
}
 |