2018-07-15 21:11:54 +00:00
|
|
|
error[E0407]: method `new` is not a member of trait `ToString_`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-3973.rs:11:5
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | / fn new(x: f64, y: f64) -> Point {
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | |
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | | Point { x: x, y: y }
|
|
|
|
LL | | }
|
|
|
|
| |_____^ not a member of trait `ToString_`
|
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no function or associated item named `new` found for struct `Point` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/issue-3973.rs:22:20
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | struct Point {
|
2022-07-01 23:47:26 +00:00
|
|
|
| ------------ function or associated item `new` not found for this struct
|
2018-07-15 21:11:54 +00:00
|
|
|
...
|
|
|
|
LL | let p = Point::new(0.0, 0.0);
|
2019-03-10 23:20:15 +00:00
|
|
|
| ^^^ function or associated item not found in `Point`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0407, E0599.
|
2018-07-15 21:11:54 +00:00
|
|
|
For more information about an error, try `rustc --explain E0407`.
|