7 fn to_string(&self) -> String;
10 impl ToString_ for Point {
11 fn new(x: f64, y: f64) -> Point {
12 //~^ ERROR method `new` is not a member of trait `ToString_`
16 fn to_string(&self) -> String {
17 format!("({}, {})", self.x, self.y)
22 let p = Point::new(0.0, 0.0);
23 //~^ ERROR no function or associated item named `new` found for struct `Point`
24 println!("{}", p.to_string());