rust/tests/ui/traits/issue-3973.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
768 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 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 {
| ------------ 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
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`.