mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			280 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			280 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// check-pass
 | 
						|
// aux-build:attributes-on-definitions.rs
 | 
						|
 | 
						|
#![forbid(unsafe_code)]
 | 
						|
 | 
						|
extern crate attributes_on_definitions;
 | 
						|
 | 
						|
attributes_on_definitions::with_attrs!();
 | 
						|
//~^ WARN use of deprecated
 | 
						|
// No errors about the use of unstable and unsafe code inside the macro.
 | 
						|
 | 
						|
fn main() {}
 |