Issue #1 new

example.rs does not compile

josemaria.alkala
repo owner created an issue

It says:

[jose@localhost ffi]$ rustc example.rs -L .
example.rs:24:11: 24:23 error: `tb::KeyEvent` does not name a structure
example.rs:24            tb::KeyEvent{md:_ , key:_ , ch:113} => break,
                         ^~~~~~~~~~~~
example.rs:25:11: 25:23 error: `tb::KeyEvent` does not name a structure
example.rs:25            tb::KeyEvent{md, key, ch }          => io::println(fmt!("KEY: %? %? %?",md, key, ch) ),
                         ^~~~~~~~~~~~
error: aborting due to 2 previous errors

Surprisingly, termbox.rs compiles succesfully with both:

$ rustc --lib termbox.rs

and

$ rustc termbox.rs

Comments (1)

  1. Log in to comment