Skip to content

Problem with type inference #4124

Closed
Closed
@stevej

Description

@stevej

I wrote up a simple, naive implementation of thunks in Rust but I've been having trouble compiling a test example, inference is unifying to () and I'm not able to fill in a type parameter to override this.

It's a small example so I threw it in a gist.

https://gist.github.com/4221872

This is with rustc 0.4

Thanks!

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