mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			400 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			400 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// check-pass
 | 
						|
// aux-build:test-macros.rs
 | 
						|
// compile-flags: -Z span-debug
 | 
						|
 | 
						|
#![feature(rustc_attrs)]
 | 
						|
 | 
						|
#![no_std] // Don't load unnecessary hygiene information from std
 | 
						|
extern crate std;
 | 
						|
 | 
						|
#[macro_use]
 | 
						|
extern crate test_macros;
 | 
						|
 | 
						|
// Tests the pretty-printing behavior of various (unparsed) tokens
 | 
						|
print_bang_consume!({
 | 
						|
    #![rustc_dummy]
 | 
						|
    let a = "hello".len();
 | 
						|
    matches!(a, 5);
 | 
						|
});
 | 
						|
 | 
						|
fn main() {}
 |