mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			305 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			305 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| 
 | |
| #![allow(path_statements)]
 | |
| #![allow(dead_code)]
 | |
| //@ aux-build:derive-atob.rs
 | |
| //@ aux-build:derive-ctod.rs
 | |
| 
 | |
| #[macro_use]
 | |
| extern crate derive_atob;
 | |
| #[macro_use]
 | |
| extern crate derive_ctod;
 | |
| 
 | |
| #[derive(Copy, Clone)]
 | |
| #[derive(AToB)]
 | |
| struct A;
 | |
| 
 | |
| #[derive(CToD)]
 | |
| struct C;
 | |
| 
 | |
| fn main() {
 | |
|     B;
 | |
|     D;
 | |
| }
 | 
