rust/src/test/ui/issues/issue-3973.stderr

23 lines
806 B
Plaintext

error[E0407]: method `new` is not a member of trait `ToString_`
--> $DIR/issue-3973.rs:21:5
|
LL | / fn new(x: f64, y: f64) -> Point {
LL | | //~^ ERROR method `new` is not a member of trait `ToString_`
LL | | Point { x: x, y: y }
LL | | }
| |_____^ not a member of trait `ToString_`
error[E0599]: no function or associated item named `new` found for type `Point` in the current scope
--> $DIR/issue-3973.rs:32:13
|
LL | struct Point {
| ------------ function or associated item `new` not found for this
...
LL | let p = Point::new(0.0, 0.0);
| ^^^^^^^^^^ function or associated item not found in `Point`
error: aborting due to 2 previous errors
Some errors occurred: E0407, E0599.
For more information about an error, try `rustc --explain E0407`.