mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			452 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			452 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn f(a: isize, b: isize) : lt(a, b) { }
 | |
| //~^ ERROR return types are denoted using `->`
 | |
| //~| ERROR expected type, found function `lt` [E0573]
 | |
| //~| ERROR expected type, found local variable `a` [E0573]
 | |
| //~| ERROR expected type, found local variable `b` [E0573]
 | |
| 
 | |
| fn lt(a: isize, b: isize) { }
 | |
| 
 | |
| fn main() {
 | |
|     let a: isize = 10;
 | |
|     let b: isize = 23;
 | |
|     check (lt(a, b));
 | |
|     //~^ ERROR cannot find function `check` in this scope [E0425]
 | |
|     f(a, b);
 | |
| }
 | 
