Skip to content

baffling error: "expected fn() -> native but found fn() -> native (types differ)" #1029

Closed
@elly

Description

@elly

Test case at http://www.leptoquark.net/~elly/ncurses-question-t.tar produces the following output when compiled:

./ncurses.rs:33:37: 33:52 error: mismatched types: expected fn() -> native but found fn() -> native (types differ)
./ncurses.rs:33 fn keypad(v : int) { _native::keypad(_native::stdscr, v); }
^~~~~~~~~~~~~~~
error: aborting due to previous errors
rt: ---
rt: c6da:main:main: upcall fail 'explicit failure', ../src/comp/driver/session.rs:67
rt: c6da:main: domain main @0x9097718 root task failed
make: *** [libncurses.so] Error 101

Error messages claiming that x != x should be illegal :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions