mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			973 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			973 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
 | |
|   --> $DIR/token-error-correct-3.rs:13:21
 | |
|    |
 | |
| LL |             callback(path.as_ref();
 | |
|    |                     ^             ^ help: `)` may belong here
 | |
|    |                     |
 | |
|    |                     unclosed delimiter
 | |
| 
 | |
| error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
 | |
|   --> $DIR/token-error-correct-3.rs:16:9
 | |
|    |
 | |
| LL |             fs::create_dir_all(path.as_ref()).map(|()| true)
 | |
|    |                                                             - expected one of `.`, `;`, `?`, `}`, or an operator
 | |
| LL |         } else {
 | |
|    |         ^ unexpected token
 | |
| 
 | |
| error[E0425]: cannot find function `is_directory` in this scope
 | |
|   --> $DIR/token-error-correct-3.rs:11:13
 | |
|    |
 | |
| LL |         if !is_directory(path.as_ref()) {
 | |
|    |             ^^^^^^^^^^^^ not found in this scope
 | |
| 
 | |
| error: aborting due to 3 previous errors
 | |
| 
 | |
| For more information about this error, try `rustc --explain E0425`.
 | 
