File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -173,23 +173,26 @@ mod tests {
173173
174174 // verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct
175175
176- static mut did_run: bool = false ;
176+ // NOTE: uncomment after snapshot, will not parse yet
177+ //static mut did_run: bool = false;
177178
178179 struct Foo { five : int }
179180
180181 impl Drop for Foo {
181182 fn drop ( & self ) {
182183 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+ //}
186188 }
187189 }
188190
189191 {
190192 let _a = ( NonCopyable , Foo { five : 5 } , NonCopyable ) ;
191193 }
192194
193- unsafe { assert_eq ! ( did_run, true ) ; }
195+ // NOTE: uncomment after snapshot, will not parse yet
196+ //unsafe { assert_eq!(did_run, true); }
194197 }
195198}
You can’t perform that action at this time.
0 commit comments