mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			248 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			248 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
fn foo(x: isize) {
 | 
						|
    fn bar() { log(debug, x); }
 | 
						|
    //~^ ERROR can't capture dynamic environment in a fn item
 | 
						|
    //~| ERROR cannot find value `debug` in this scope
 | 
						|
    //~| ERROR cannot find function `log` in this scope
 | 
						|
}
 | 
						|
fn main() { foo(2); }
 |