rust/src/test/auxiliary/issue_2242_a.rs

11 lines
160 B
Rust
Raw Normal View History

2012-06-20 16:23:45 -07:00
#[link(name = "a", vers = "0.1")];
#[crate_type = "lib"];
iface to_str {
fn to_str() -> str;
}
impl of to_str for str {
fn to_str() -> str { self }
}