mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			477 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			477 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test that using a macro to replace the entire crate tree with a non-'mod' item errors out nicely.
 | |
| // `issue_59191::no_main` replaces whatever's passed in with `fn main() {}`.
 | |
| 
 | |
| //@ edition:2018
 | |
| //@ proc-macro: issue-59191.rs
 | |
| //@ needs-unwind (affects error output)
 | |
| 
 | |
| #![feature(custom_inner_attributes)]
 | |
| #![issue_59191::no_main]
 | |
| #![issue_59191::no_main]
 | |
| 
 | |
| //~? ERROR `#[panic_handler]` function required, but not found
 | |
| //~? ERROR unwinding panics are not supported without std
 | 
