feat: add tests
This commit is contained in:
17
__std/misc/src/bin/drop_test.rs
Normal file
17
__std/misc/src/bin/drop_test.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
#[derive(Debug)]
|
||||
struct Object {}
|
||||
|
||||
impl Drop for Object {
|
||||
fn drop(&mut self) {
|
||||
println!("Object#drop");
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
{
|
||||
let object = Object {};
|
||||
println!("Dump: {:?}", object);
|
||||
println!("Block end.");
|
||||
}
|
||||
println!("Main end.");
|
||||
}
|
||||
Reference in New Issue
Block a user