blob: 90952690fe7adebf4ebfeae474f740c331180050 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// expect error: a drop can't be set inside an o3 region
// destructors, o3: setting a drop inside o3 is an error
include rt;
fn main() {
int* x = rt.new(int);
o3 { x.drop = fn() { rt.put_s("a"); }; }
return 0;
}
// zc0: skip
|