mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			158 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			158 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(coroutines)]
 | |
| 
 | |
| fn foo(_b: &bool, _a: ()) {}
 | |
| 
 | |
| fn main() {
 | |
|     #[coroutine]
 | |
|     || {
 | |
|         let b = true;
 | |
|         foo(&b, yield); //~ ERROR
 | |
|     };
 | |
| }
 | 
