Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/cpp_calling_rust fails to run #1207

Closed
nak3 opened this issue Jan 23, 2023 · 0 comments · Fixed by #1208
Closed

examples/cpp_calling_rust fails to run #1207

nak3 opened this issue Jan 23, 2023 · 0 comments · Fixed by #1208

Comments

@nak3
Copy link
Contributor

nak3 commented Jan 23, 2023

Expected Behavior

  • examples/cpp_calling_rust does not produce an error.

Actual Behavior

  • The following error happens:
$ cargo run
    Updating crates.io index
   Compiling cpp_calling_rust v0.1.0 (/home/knakayam/dev/autocxx/examples/cpp_calling_rust)
error[E0277]: the trait bound `autocxx_engine::builder::BuilderError: Diagnostic` is not satisfied
  --> build.rs:13:17
   |
13 |         .build()?;
   |                 ^ the trait `Diagnostic` is not implemented for `autocxx_engine::builder::BuilderError`
   |
   = help: the following other types implement trait `Diagnostic`:
             InstallError
             MietteError
   = note: required because of the requirements on the impl of `From<autocxx_engine::builder::BuilderError>` for `ErrReport`
   = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, autocxx_engine::builder::BuilderError>>` for `Result<(), ErrReport>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `cpp_calling_rust` due to previous error

Steps to Reproduce the Problem

  1. Just run examples/cpp_calling_rust.
$ cd examples/cpp_calling_rust
$ cargo run

Specifications

$ uname -omprsi
Linux 6.0.12-100.fc35.x86_64 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant