blob: 1420dff063cfab7caf357cfeaf734f15d41417d6 [file] [log] [blame]
// run-pass
#![allow(dead_code)]
pub fn main() {
trait Text {
fn to_string(&self) -> String;
}
fn to_string(t: Box<Text>) {
println!("{}", (*t).to_string());
}
}