graydon/rust — Issue #1029: baffling error: "expected fn() -> native but found fn() -> native (types differ)"
Author: elly
Created: 2011-10-12 04:55:36+00:00
State: open

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 :).