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

Unable to compile example - cannot infer type, consider giving `result` a type #3

diit opened this issue Mar 24, 2020 · 1 comment


Copy link

@diit diit commented Mar 24, 2020


  • Git clone master
  • cargo run


Default host: x86_64-apple-darwin
rustup home: /.../.rustup

installed toolchains


active toolchain

1.35.0-x86_64-apple-darwin (overridden by '/.../alchemy/rust-toolchain')
rustc 1.35.0 (3c235d560 2019-05-20)

What are you trying to accomplish?

Running example

What is the actual output?

error[E0282]: type annotations needed
  --> cocoa/src/
42 |             msg_send![&*inner, setDelegate:delegate];
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |             |
   |             cannot infer type
   |             consider giving `result` a type
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: unused import: `Component`
  --> cocoa/src/
16 | use alchemy_lifecycle::traits::{AppDelegate, Component};
   |                                              ^^^^^^^^^
   = note: #[warn(unused_imports)] on by default

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.
error: Could not compile `alchemy-cocoa`.
warning: build failed, waiting for other jobs to finish...
error: build failed


  • I have already looked over the issue tracker for similar issues.
  • This issue can be reproduced on Rust's stable channel. (Your issue will be
    closed if this is not the case)

This comment has been minimized.

Copy link

@ryanmcgrath ryanmcgrath commented Mar 24, 2020

Heya - thanks for taking interest. I appreciate the Rust community's interest in GUI solutions but... well, I should put a notice in the README. :\

You can see this comment I posted on Reddit when it came up there recently for more context - I'd like to return to this eventually but it's just a bit heavy for me right now. If you're interested in following my work in this area, you can check out appkit-rs, which is a Cocoa/AppKit wrapper that'd end up being used here whenever I can return to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.