mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			202 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			202 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// aux-build:test-macros.rs
 | 
						|
// needs-unwind proc macro panics to report errors
 | 
						|
 | 
						|
#[macro_use]
 | 
						|
extern crate test_macros;
 | 
						|
 | 
						|
#[derive(Panic)]
 | 
						|
//~^ ERROR: proc-macro derive panicked
 | 
						|
struct Foo;
 | 
						|
 | 
						|
fn main() {}
 |