rust/src/test/auxiliary/issue_2242_a.rs

11 lines
163 B
Rust

#[link(name = "a", vers = "0.1")];
#[crate_type = "lib"];
trait to_str {
fn to_str() -> ~str;
}
impl of to_str for ~str {
fn to_str() -> ~str { self }
}