mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			377 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			377 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-rustfix
 | |
| fn main() {
 | |
|     assert_eq!(1, 1);
 | |
|     //~^ ERROR expected function, found macro `assert_eq`
 | |
|     assert_eq! { 1, 1 };
 | |
|     //~^ ERROR expected struct, variant or union type, found macro `assert_eq`
 | |
|     //~| ERROR expected identifier, found `1`
 | |
|     //~| ERROR expected identifier, found `1`
 | |
|     assert![true];
 | |
|     //~^ ERROR expected value, found macro `assert`
 | |
| }
 | 
