mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			227 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			227 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// run-pass
 | 
						|
// aux-build:custom-attr-only-one-derive.rs
 | 
						|
 | 
						|
#![feature(rust_2018_preview)]
 | 
						|
 | 
						|
#[macro_use]
 | 
						|
extern crate custom_attr_only_one_derive;
 | 
						|
 | 
						|
#[derive(Bar, Foo)]
 | 
						|
#[custom = "test"]
 | 
						|
pub enum A {
 | 
						|
    B,
 | 
						|
    C,
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |