Skip to content

Failed to run hello_world example: type annotations needed #93

@valentinegb

Description

@valentinegb

Attempting to run the hello_world example using crank as instructed in the README results in a whole lot of errors along the lines of "type annotations needed":

error[E0282]: type annotations needed
  --> src/lib.rs:84:13
   |
84 |             Ok(raw_fn())
   |             ^^^^^^^^^^^^ cannot infer type
   |
  ::: src/display.rs:25:13
   |
25 |             pd_func_caller!((*self.0).getWidth)?,
   |             ----------------------------------- in this macro invocation
   |
   = note: this error originates in the macro `pd_func_caller` (in Nightly builds, run with -Z macro-backtrace for more info)

Here's the full output: crank.log

I am on macOS 15.4 Beta (24E5228e) with Playdate SDK 2.6.2 installed using Homebrew and Rust 1.85.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions