We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f2940 commit b3def05Copy full SHA for b3def05
1 file changed
tests/unit/out/unsafe/default_in_statics.rs
@@ -160,8 +160,16 @@ unsafe fn main_0() -> i32 {
160
let mut i: i32 = 0;
161
'loop_: while ((i) < (2)) {
162
assert!((static_foo_array_4[(i) as usize].s2).is_null());
163
- assert!(unsafe { (&raw const static_foo_array_4).as_ref().unwrap()[(i) as usize].fn1.is_none() });
164
- assert!(unsafe { (&raw const static_foo_array_4).as_ref().unwrap()[(i) as usize].fn2.is_none() });
+ assert!(unsafe {
+ (&raw const static_foo_array_4).as_ref().unwrap()[(i) as usize]
165
+ .fn1
166
+ .is_none()
167
+ });
168
169
170
+ .fn2
171
172
173
i.prefix_inc();
174
}
175
(unsafe { check_local_static_5() });
0 commit comments