mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			404 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			404 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #[cfg(false)]
 | |
| fn if_else_parse_error() {
 | |
|     if true {
 | |
|     } #[attr] else if false { //~ ERROR expected
 | |
|     }
 | |
| }
 | |
| 
 | |
| #[cfg(false)]
 | |
| fn else_attr_ifparse_error() {
 | |
|     if true {
 | |
|     } else #[attr] if false { //~ ERROR outer attributes are not allowed
 | |
|     } else {
 | |
|     }
 | |
| }
 | |
| 
 | |
| #[cfg(false)]
 | |
| fn else_parse_error() {
 | |
|     if true {
 | |
|     } else if false {
 | |
|     } #[attr] else { //~ ERROR expected
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
| }
 | 
