Title: Samsung Enterprise Portal mySingle

Hi all,

 

I have a question about using condition.

There is an ICE when I use a condition from another crate.

 

// condi.rc (rustc --lib condi.rc)

#[link(name = "condi", vers = "0.1")];

#[crate_type = "lib"];

 

condition! {

    oops: int -> int;

}

 

// test.rs (rustc -L . test.rs)

extern mod condi;

 

fn main() {

    condi::oops::cond.raise(1);

}

 

Howerver, there is no error if the condition is in the same crate.

 

// condi.rs

condition! {

    oops: int -> int;

}

 

// test.rs (rustc test.rs)

pub mod condi;

 

fn main() {

    condi::oops::cond.raise(1);

}

 

Thanks,

Youngsoo.

 

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

Reply via email to