tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

README lua function example doesn't compile #83

Closed dotellie closed 7 years ago

dotellie commented 8 years ago

Forgive me, since I'm still trying to get into Rust, if there is something obvious I'm missing.

I tried to do the lua function example from the README, but it didn't compile at all and I'm still quite bad with traits and the like, so I'm afraid I can't solve this on my own.

Cargo run output:

src/main.rs:25:24: 25:51 error: wrong number of type arguments: expected 1, found 0 [E0243]
src/main.rs:25     let some_function: functions_read::LuaFunction = lua.get("stuff").unwrap();
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:25:24: 25:51 help: run `rustc --explain E0243` to see a detailed explanation