mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			252 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			252 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: missing `fn` for function definition
 | 
						|
  --> $DIR/missing-fn-issue-125446.rs:1:1
 | 
						|
   |
 | 
						|
LL | whoops() {}
 | 
						|
   | ^^^^^^
 | 
						|
   |
 | 
						|
help: add `fn` here to parse `whoops` as a function
 | 
						|
   |
 | 
						|
LL | fn whoops() {}
 | 
						|
   | ++
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |