virtualization-rs icon indicating copy to clipboard operation
virtualization-rs copied to clipboard

Compile error of virtualization-rs (expected bool bound i8)

Open JustAnotherCodemonkey opened this issue 2 years ago • 0 comments

cargo b
   Compiling libc v0.2.142
   Compiling block v0.1.6
   Compiling malloc_buf v0.0.6
   Compiling objc v0.2.7
   Compiling virtualization-rs v0.1.2 (/Users/personal/Desktop/Rust/virtualization-rs)
error[E0308]: mismatched types
   --> src/virtualization/virtual_machine.rs:311:16
    |
311 |             Ok(ret)
    |             -- ^^^ expected 'bool', found 'i8'
    |             |
    |             arguments to this enum variant are incorrect
    |
help: the type constructed contains 'i8' due to the type of the argument passed
   --> src/virtualization/virtual_machine.rs:311:13
    |
311 |             Ok(ret)
    |             ^^^---^
    |                |
    |                this argument influences the type of 'Ok'
note: tuple variant defined here
   --> /Users/personal/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:507:5
    |
507 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^

For more information about this error, try 'rustc --explain E0308'.
error: could not compile 'virtualization-rs' due to previous error

built with stable-x86_64-apple-darwin

JustAnotherCodemonkey avatar May 01 '23 23:05 JustAnotherCodemonkey