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

25 lines
777 B
Plaintext
Raw Normal View History

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_`
error[E0599]: no function or associated item named `new` found for type `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 {
| ------------ function or associated item `new` not found for this
...
LL | let p = Point::new(0.0, 0.0);
2018-12-07 12:15:36 -06:00
| -------^^^
| |
| function or associated item not found in `Point`
2018-07-15 16:11:54 -05:00
error: aborting due to 2 previous errors
Some errors occurred: E0407, E0599.
For more information about an error, try `rustc --explain E0407`.