mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-28 11:38:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			409 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			409 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ build-pass (FIXME(62277): could be check-pass?)
 | |
| //@ force-host
 | |
| //@ no-prefer-dynamic
 | |
| //@ needs-unwind compiling proc macros with panic=abort causes a warning
 | |
| 
 | |
| #![crate_type = "proc-macro"]
 | |
| #![deny(rust_2018_compatibility)]
 | |
| 
 | |
| extern crate proc_macro;
 | |
| 
 | |
| use proc_macro::TokenStream;
 | |
| 
 | |
| #[proc_macro_derive(Template, attributes(template))]
 | |
| pub fn derive_template(input: TokenStream) -> TokenStream {
 | |
|     input
 | |
| }
 | 
