From 7eeb9e344a19761c77708eeecc3dab5ffc1b5751 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Fri, 18 Mar 2022 17:08:51 +0100 Subject: [PATCH] Make test checking for conversion to param --- crates/tests/nightly_interface/tests/com.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/tests/nightly_interface/tests/com.rs b/crates/tests/nightly_interface/tests/com.rs index 176c3b6241..4eeae1006d 100644 --- a/crates/tests/nightly_interface/tests/com.rs +++ b/crates/tests/nightly_interface/tests/com.rs @@ -150,6 +150,14 @@ fn test_custom_interface() -> windows::core::Result<()> { p.GetClassID(&mut b).ok()?; assert_eq!(b, "117fb826-2155-483a-b50d-bc99a2c7cca3".into()); + CheckConversionWorks(p); + Ok(()) } } + +pub fn CheckConversionWorks<'a, P>(_p: P) +where + P: windows::core::IntoParam<'a, windows::core::IUnknown>, +{ +}