mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			242 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			242 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
struct Foo {
 | 
						|
    a: u32
 | 
						|
}
 | 
						|
 | 
						|
impl Drop for Foo {
 | 
						|
    fn drop(&mut self) {}
 | 
						|
}
 | 
						|
 | 
						|
struct Bar {
 | 
						|
    a: u32
 | 
						|
}
 | 
						|
 | 
						|
impl Drop for Bar {
 | 
						|
    fn drop(&mut self) {}
 | 
						|
}
 | 
						|
 | 
						|
const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
 | 
						|
//~^ ERROR destructor of
 | 
						|
 | 
						|
fn main() {
 | 
						|
}
 |