rust/src/test/auxiliary/issue_2242_c.rs

11 lines
153 B
Rust
Raw Normal View History

2012-06-20 16:23:45 -07:00
#[link(name = "c", vers = "0.1")];
#[crate_type = "lib"];
use a;
import a::to_str;
2012-08-07 18:10:06 -07:00
impl bool: to_str {
fn to_str() -> ~str { fmt!{"%b", self} }
2012-06-20 16:23:45 -07:00
}