File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -173,23 +173,26 @@ mod tests {
173
173
174
174
// verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct
175
175
176
- static mut did_run: bool = false ;
176
+ // NOTE: uncomment after snapshot, will not parse yet
177
+ //static mut did_run: bool = false;
177
178
178
179
struct Foo { five : int }
179
180
180
181
impl Drop for Foo {
181
182
fn drop ( & self ) {
182
183
assert_eq ! ( self . five, 5 ) ;
183
- unsafe {
184
- did_run = true ;
185
- }
184
+ // NOTE: uncomment after snapshot, will not parse yet
185
+ //unsafe {
186
+ //did_run = true;
187
+ //}
186
188
}
187
189
}
188
190
189
191
{
190
192
let _a = ( NonCopyable , Foo { five : 5 } , NonCopyable ) ;
191
193
}
192
194
193
- unsafe { assert_eq ! ( did_run, true ) ; }
195
+ // NOTE: uncomment after snapshot, will not parse yet
196
+ //unsafe { assert_eq!(did_run, true); }
194
197
}
195
198
}
You can’t perform that action at this time.
0 commit comments