tests: fixture 파일명과 unit 동기화
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
unit badclos;
|
||||
|
||||
struct FileLike {
|
||||
handle: i32,
|
||||
fn close(self: Self) -> !void { self.handle = 0; }
|
||||
fn drop(self: &mut Self) { self.handle = 0; }
|
||||
}
|
||||
|
||||
fn bad() -> !void {
|
||||
let file: FileLike = FileLike{ handle: 7 };
|
||||
try file.close();
|
||||
file.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user