mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-29 20:15:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			236 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			236 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ edition:2021
 | |
| //@ build-pass
 | |
| 
 | |
| struct A;
 | |
| impl Drop for A { fn drop(&mut self) {} }
 | |
| 
 | |
| pub async fn f() {
 | |
|     let mut a = A;
 | |
|     a = A;
 | |
|     drop(a);
 | |
|     async {}.await;
 | |
| }
 | |
| 
 | |
| fn assert_send<T: Send>(_: T) {}
 | |
| 
 | |
| fn main() {
 | |
|     let _ = f();
 | |
| }
 | 
