rust/src/test/ui/issues/issue-3973.stderr
Alexander Regueiro 58a5756f4d Fixed more tests.
2018-12-26 21:40:21 +00:00

25 lines
842 B
Plaintext

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 | | //~^ 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:22:20
|
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`.