blob: 9da3617c05b6a0382be7cf98f2e3ed74758d305a [file]
error[E0407]: method `new` is not a member of trait `ToString_`
--> $DIR/issue-3973.rs:11:5
|
LL | / fn new(x: f64, y: f64) -> Point {
LL | |
LL | | Point { x: x, y: y }
LL | | }
| |_____^ not a member of trait `ToString_`
error[E0599]: no associated function or constant named `new` found for struct `Point` in the current scope
--> $DIR/issue-3973.rs:22:20
|
LL | struct Point {
| ------------ associated function or constant `new` not found for this struct
...
LL | let p = Point::new(0.0, 0.0);
| ^^^ associated function or constant not found in `Point`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0407, E0599.
For more information about an error, try `rustc --explain E0407`.