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