Hi,

2014-11-09 19:33 GMT+02:00 C K Kashyap <[email protected]>:

>
> I am attempting to implement some functions in Rust that I'd like to call
> from my existing C app. Here's what I tried - I created a rust file as
> follows -
>
> #![crate_name = "rustcode"]
> #![crate_type = "staticlib"]
> #![no_std]
> #![feature(globs, asm, lang_items)]
>
> #[no_mangle]
> pub extern "C" fn rust_func() {}
>
>
>
> When I compile it using rustc, I get
>
> error: requires `sized` lang_item
> error: aborting due to previous erro
>

Try removing feature(lang_items).

Mikhail
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to