You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use windows::core::*;#[interface("094d70d6-5202-44b8-abb8-43860da5aca2")]unsafetraitIValue:IUnknown{fnGetValue(&self,value:*muti32) -> HRESULT;}#[implement(IValue)]structValue(i32);implIValue_ImplforValue{unsafefnGetValue(&self,value:*muti32) -> HRESULT{*value = self.0;HRESULT(0)}}
get compile error=>
error[E0277]: the trait bound `Value_Impl: IValue_Impl` is not satisfied
--> src\test.rs:8:1
|
8 | #[implement(IValue)]
| ^^^^^^^^^^^^^^^^^^^^ the trait `IValue_Impl` is not implemented for `Value_Impl`
|
= help: the trait `IValue_Impl` is implemented for `arc_stream::Value`
note: required by a bound in `IValue_Vtbl::new`
--> src\test.rs:4:14
|
3 | #[interface("094d70d6-5202-44b8-abb8-43860da5aca2")]
| ---------------------------------------------------- required by a bound in this associated function
4 | unsafe trait IValue: IUnknown {
| ^^^^^^ required by this bound in `IValue_Vtbl::new`
= note: this error originates in the attribute macro `implement` (in Nightly builds, run with -Z macro-backtrace for more info)
Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered:
Summary
ver: windows-rs 0.58
get compile error=>
Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: