]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3973.stderr
Various minor/cosmetic improvements to code
[rust.git] / src / test / ui / issues / issue-3973.stderr
1 error[E0407]: method `new` is not a member of trait `ToString_`
2   --> $DIR/issue-3973.rs:21:5
3    |
4 LL | /     fn new(x: f64, y: f64) -> Point {
5 LL | |     //~^ ERROR method `new` is not a member of trait `ToString_`
6 LL | |         Point { x: x, y: y }
7 LL | |     }
8    | |_____^ not a member of trait `ToString_`
9
10 error[E0599]: no function or associated item named `new` found for type `Point` in the current scope
11   --> $DIR/issue-3973.rs:32:20
12    |
13 LL | struct Point {
14    | ------------ function or associated item `new` not found for this
15 ...
16 LL |     let p = Point::new(0.0, 0.0);
17    |             -------^^^
18    |             |
19    |             function or associated item not found in `Point`
20
21 error: aborting due to 2 previous errors
22
23 Some errors occurred: E0407, E0599.
24 For more information about an error, try `rustc --explain E0407`.