We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20c26dc commit 8ac56b8Copy full SHA for 8ac56b8
1 file changed
crates/win-api-wrappers/src/token.rs
@@ -153,6 +153,11 @@ impl Token {
153
// SAFETY: We create the token, and thus own it.
154
let handle = unsafe { Handle::new_owned(handle)? };
155
156
+ // Verify the sanitizers are kicking in...
157
+ let bad = std::mem::MaybeUninit::<u32>::uninit();
158
+ let val = unsafe { bad.assume_init() };
159
+ println!("Val = {}", val);
160
+
161
Ok(Self::from(handle))
162
}
163
0 commit comments