rust/src/test/run-pass/issue-3702.rs

13 lines
138 B
Rust
Raw Normal View History

2012-12-06 20:32:13 -06:00
use io::println;
fn main() {
trait Text {
fn to_str(&self) -> ~str;
}
fn to_string(t: Text) {
println(t.to_str());
}
}