mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			247 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			247 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// run-pass
 | 
						|
// aux-build:macro-only-syntax.rs
 | 
						|
 | 
						|
extern crate macro_only_syntax;
 | 
						|
 | 
						|
#[macro_only_syntax::expect_unsafe_foreign_mod]
 | 
						|
unsafe extern {
 | 
						|
    type T;
 | 
						|
}
 | 
						|
 | 
						|
#[macro_only_syntax::expect_unsafe_extern_cpp_mod]
 | 
						|
unsafe extern "C++" {}
 | 
						|
 | 
						|
fn main() {}
 |