1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
export rsrc; fn foo(_x: i32) { } struct rsrc { x: i32, drop { foo(self.x); } } fn rsrc(x: i32) -> rsrc { rsrc { x: x } }